final fix
This commit is contained in:
parent
aaa156086f
commit
40a8ac6f6d
@ -6,6 +6,7 @@ using HotelContracts.SearchModels;
|
|||||||
using HotelContracts.StoragesContracts;
|
using HotelContracts.StoragesContracts;
|
||||||
using HotelContracts.ViewModels;
|
using HotelContracts.ViewModels;
|
||||||
using HotelDataBaseImplement.Models;
|
using HotelDataBaseImplement.Models;
|
||||||
|
using DocumentFormat.OpenXml.Wordprocessing;
|
||||||
|
|
||||||
namespace HotelBusinessLogic.BusinessLogics
|
namespace HotelBusinessLogic.BusinessLogics
|
||||||
{
|
{
|
||||||
@ -116,13 +117,16 @@ namespace HotelBusinessLogic.BusinessLogics
|
|||||||
foreach (var mp in conferenceBooking.ConferenceBookingLunches.Values)
|
foreach (var mp in conferenceBooking.ConferenceBookingLunches.Values)
|
||||||
{
|
{
|
||||||
var conference = conferenced.FirstOrDefault(dp => dp.Id == conferenceBooking.ConferenceId);
|
var conference = conferenced.FirstOrDefault(dp => dp.Id == conferenceBooking.ConferenceId);
|
||||||
listAll.Add(new ReportLunchesViewModel
|
if (conference != null)
|
||||||
{
|
{
|
||||||
LunchName = mp.LunchName,
|
listAll.Add(new ReportLunchesViewModel
|
||||||
LunchPrice = mp.LunchPrice,
|
{
|
||||||
ConferenceName = conference.ConferenceName,
|
LunchName = mp.LunchName,
|
||||||
StartDate = conference.StartDate
|
LunchPrice = mp.LunchPrice,
|
||||||
});
|
ConferenceName = conference.ConferenceName,
|
||||||
|
StartDate = conference.StartDate
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,14 +116,17 @@ namespace HotelBusinessLogic.BusinessLogics
|
|||||||
foreach (var mp in mealPlan.MealPlanMembers.Values)
|
foreach (var mp in mealPlan.MealPlanMembers.Values)
|
||||||
{
|
{
|
||||||
var room = rooms.FirstOrDefault(r => r.MealPlanId == mealPlan.Id);
|
var room = rooms.FirstOrDefault(r => r.MealPlanId == mealPlan.Id);
|
||||||
listAll.Add(new ReportMembersViewModel
|
if (room != null)
|
||||||
{
|
{
|
||||||
MemberSurname = mp.MemberSurname,
|
listAll.Add(new ReportMembersViewModel
|
||||||
MemberName = mp.MemberName,
|
{
|
||||||
MemberPatronymic = mp.MemberPatronymic,
|
MemberSurname = mp.MemberSurname,
|
||||||
RoomName = room.RoomName,
|
MemberName = mp.MemberName,
|
||||||
RoomPrice = room.RoomPrice
|
MemberPatronymic = mp.MemberPatronymic,
|
||||||
});
|
RoomName = room.RoomName,
|
||||||
|
RoomPrice = room.RoomPrice
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": true,
|
"launchBrowser": true,
|
||||||
"applicationUrl": "https://localhost:7020;http://localhost:5029",
|
"applicationUrl": "https://localhost:7040;http://localhost:5049",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user