From 4d531b622232f09bd1bff2c8eb144e680bbe8d09 Mon Sep 17 00:00:00 2001 From: berlin-tzen Date: Mon, 9 Jan 2023 14:04:12 +0800 Subject: [PATCH] =?UTF-8?q?[WHAT]=20=E6=96=B0=E5=A2=9E=E4=BE=9DID=E6=9F=A5?= =?UTF-8?q?=E8=A9=A2=E5=B1=95=E9=A4=A8=20[WHY]=20ShowEasy=20=E5=BE=8C?= =?UTF-8?q?=E5=8F=B0=E9=96=8B=E7=99=BC=20[HOW]=20=E5=B1=95=E9=A4=A8?= =?UTF-8?q?=E7=AE=A1=E7=90=86API=E9=96=8B=E7=99=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EuroTran/EasyBL.WEBAPP/ShowEasy/VenueService.cs | 15 ++------------- EuroTran/WebApp/Controllers/VenueController.cs | 4 ++-- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/EuroTran/EasyBL.WEBAPP/ShowEasy/VenueService.cs b/EuroTran/EasyBL.WEBAPP/ShowEasy/VenueService.cs index 97305c3..8b4c157 100644 --- a/EuroTran/EasyBL.WEBAPP/ShowEasy/VenueService.cs +++ b/EuroTran/EasyBL.WEBAPP/ShowEasy/VenueService.cs @@ -28,12 +28,12 @@ namespace EasyBL.WEBAPP.SYS /// /// - public VenueDTO FindByIDs(string sVenueID, string sLangType) + public SETB_ORG_Venue FindByIDs(string sVenueID, string sLangType) { string sMsg = null; var db = SugarBase.GetIntance(); - VenueDTO rsVenue = new VenueDTO(); + var rsVenue = new SETB_ORG_Venue(); @@ -52,17 +52,6 @@ namespace EasyBL.WEBAPP.SYS }) .Where((t1) => t1.VenueID == sVenueID) .Where((t1) => t1.LangType == sLangType) - .Select((t1, t2, t3, t4) => new VenueDTO - { - - VenueID = SqlFunc.GetSelfAndAutoFill(t1.VenueID), - - VenueName = t1.VenueName, - RegionName = t2.RegionName, - CountryName = t3.CountryName, - CityName = t4.CityName - - }) .Single(); } while (false); diff --git a/EuroTran/WebApp/Controllers/VenueController.cs b/EuroTran/WebApp/Controllers/VenueController.cs index 9189da7..3c952da 100644 --- a/EuroTran/WebApp/Controllers/VenueController.cs +++ b/EuroTran/WebApp/Controllers/VenueController.cs @@ -9,9 +9,9 @@ namespace WebApp.Controllers [HttpGet] - public HttpResponseMessage venue(string lang, string venueid) + public HttpResponseMessage venue(string Lang, string VenueID) { - return new VenueService().GetOneVenue(lang, venueid); + return new VenueService().GetOneVenue(Lang, VenueID); }