Agliullov D. A. Lab Work 6 Hard #18

Closed
d.agliullov wants to merge 53 commits from Lab6_Hard into Lab5_Hard
Showing only changes of commit d9d36e1eec - Show all commits

View File

@ -89,7 +89,7 @@ namespace ConfectioneryDatabaseImplement.Models
return new()
{
PastryName = context.Pastries.FirstOrDefault(x => x.Id == PastryId)?.PastryName ?? string.Empty,
ClientFIO = Client?.ClientFIO ?? context.Clients.FirstOrDefault(x => x.Id == ClientId)?.ClientFIO ?? string.Empty,
ClientFIO = Client?.ClientFIO ?? string.Empty,
ImplementerFIO = Implementer?.ImplementerFIO ?? string.Empty,
PastryId = PastryId,
Count = Count,