diff --git a/Hotel/HotelDataBaseImplement/Implemets/MemberStorage.cs b/Hotel/HotelDataBaseImplement/Implemets/MemberStorage.cs index 1f05076..11e97fb 100644 --- a/Hotel/HotelDataBaseImplement/Implemets/MemberStorage.cs +++ b/Hotel/HotelDataBaseImplement/Implemets/MemberStorage.cs @@ -40,6 +40,7 @@ namespace HotelDataBaseImplement.Implemets .ThenInclude(x => x.Conference) .Include(x => x.MealPlanMember) .ThenInclude(x => x.MealPlan) + .Include(x => x.Organiser) .FirstOrDefault(x => (!string.IsNullOrEmpty(model.MemberFIO) && x.MemberFIO == model.MemberFIO) || (model.Id.HasValue && x.Id == model.Id))? .GetViewModel; } @@ -58,6 +59,7 @@ namespace HotelDataBaseImplement.Implemets .ThenInclude(x => x.Conference) .Include(x => x.MealPlanMember) .ThenInclude(x => x.MealPlan) + .Include(x => x.Organiser) .Where(x => x.MemberFIO.Contains(model.MemberFIO)) .ToList() .Select(x => x.GetViewModel) @@ -73,6 +75,7 @@ namespace HotelDataBaseImplement.Implemets .ThenInclude(x => x.Conference) .Include(x => x.MealPlanMember) .ThenInclude(x => x.MealPlan) + .Include(x => x.Organiser) .ToList() .Select(x => x.GetViewModel) .ToList();