Browse Source

[WHAT] 新增依ID查詢展館 [WHY] ShowEasy 後台開發 [HOW] 展館管理API開發

Dev
berlin-tzen 2 years ago
parent
commit
4d531b6222
  1. 15
      EuroTran/EasyBL.WEBAPP/ShowEasy/VenueService.cs
  2. 4
      EuroTran/WebApp/Controllers/VenueController.cs

15
EuroTran/EasyBL.WEBAPP/ShowEasy/VenueService.cs

@ -28,12 +28,12 @@ namespace EasyBL.WEBAPP.SYS
/// <returns></returns> /// <returns></returns>
/// ///
public VenueDTO FindByIDs(string sVenueID, string sLangType)
public SETB_ORG_Venue FindByIDs(string sVenueID, string sLangType)
{ {
string sMsg = null; string sMsg = null;
var db = SugarBase.GetIntance(); 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.VenueID == sVenueID)
.Where((t1) => t1.LangType == sLangType) .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(); .Single();
} while (false); } while (false);

4
EuroTran/WebApp/Controllers/VenueController.cs

@ -9,9 +9,9 @@ namespace WebApp.Controllers
[HttpGet] [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);
} }

Loading…
Cancel
Save