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); }