From e2a350799a679b576dfc8532e13cb899fb659671 Mon Sep 17 00:00:00 2001 From: AnnZhimol Date: Wed, 5 Apr 2023 23:40:29 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BE?= =?UTF-8?q?=D1=87=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Hotel/HotelDataBaseImplement/Implemets/MemberStorage.cs | 3 +++ 1 file changed, 3 insertions(+) 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();