поправочка
This commit is contained in:
parent
ef472be067
commit
e2a350799a
@ -40,6 +40,7 @@ namespace HotelDataBaseImplement.Implemets
|
|||||||
.ThenInclude(x => x.Conference)
|
.ThenInclude(x => x.Conference)
|
||||||
.Include(x => x.MealPlanMember)
|
.Include(x => x.MealPlanMember)
|
||||||
.ThenInclude(x => x.MealPlan)
|
.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))?
|
.FirstOrDefault(x => (!string.IsNullOrEmpty(model.MemberFIO) && x.MemberFIO == model.MemberFIO) || (model.Id.HasValue && x.Id == model.Id))?
|
||||||
.GetViewModel;
|
.GetViewModel;
|
||||||
}
|
}
|
||||||
@ -58,6 +59,7 @@ namespace HotelDataBaseImplement.Implemets
|
|||||||
.ThenInclude(x => x.Conference)
|
.ThenInclude(x => x.Conference)
|
||||||
.Include(x => x.MealPlanMember)
|
.Include(x => x.MealPlanMember)
|
||||||
.ThenInclude(x => x.MealPlan)
|
.ThenInclude(x => x.MealPlan)
|
||||||
|
.Include(x => x.Organiser)
|
||||||
.Where(x => x.MemberFIO.Contains(model.MemberFIO))
|
.Where(x => x.MemberFIO.Contains(model.MemberFIO))
|
||||||
.ToList()
|
.ToList()
|
||||||
.Select(x => x.GetViewModel)
|
.Select(x => x.GetViewModel)
|
||||||
@ -73,6 +75,7 @@ namespace HotelDataBaseImplement.Implemets
|
|||||||
.ThenInclude(x => x.Conference)
|
.ThenInclude(x => x.Conference)
|
||||||
.Include(x => x.MealPlanMember)
|
.Include(x => x.MealPlanMember)
|
||||||
.ThenInclude(x => x.MealPlan)
|
.ThenInclude(x => x.MealPlan)
|
||||||
|
.Include(x => x.Organiser)
|
||||||
.ToList()
|
.ToList()
|
||||||
.Select(x => x.GetViewModel)
|
.Select(x => x.GetViewModel)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
Loading…
Reference in New Issue
Block a user