редактирование
This commit is contained in:
parent
5813335afd
commit
eb294b1146
@ -532,8 +532,8 @@ namespace HostrelHeadwaiterApp.Controllers
|
||||
{
|
||||
return Redirect("~/Home/Enter");
|
||||
}
|
||||
ViewBag.Conferences = APIClient.GetRequest<List<ConferenceViewModel>>($"api/main/getconferencelist?organiserId={APIClient.Headwaiter.Id}");
|
||||
ViewBag.ConferenceBookings = APIClient.GetRequest<List<ConferenceBookingViewModel>>($"api/main/getconferenceBookings");
|
||||
ViewBag.Conferences = APIClient.GetRequest<List<ConferenceViewModel>>($"api/main/getconferences");
|
||||
ViewBag.ConferenceBookings = APIClient.GetRequest<List<ConferenceBookingViewModel>>($"api/main/getconferenceBookinglist?headwaiterId={APIClient.Headwaiter.Id}");
|
||||
return View();
|
||||
}
|
||||
|
||||
|
@ -583,15 +583,15 @@ namespace HotelRestApi.Controllers
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public List<ConferenceBookingViewModel>? GetConferenceBookings()
|
||||
public List<ConferenceViewModel>? GetConferences()
|
||||
{
|
||||
try
|
||||
{
|
||||
return _conferenceBooking.ReadList(null);
|
||||
return _conference.ReadList(null);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex, "Ошибка получения списка номеров");
|
||||
_logger.LogError(ex, "Ошибка получения списка конференций");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user