ПИбд-23 Яшин Артем Александрович Лабораторная работа №7 усложненная #16

Closed
Artyom_Yashin wants to merge 8 commits from Lab7-hard into Lab6-hard
Showing only changes of commit 92fb9ddcc2 - Show all commits

View File

@ -44,7 +44,7 @@ namespace ComputersShopDatabaseImplement.Models
{
Body = model.Body,
Subject = model.Subject,
ClientId = context.Clients.FirstOrDefault(x => x.Email == model.SenderName).Id,
ClientId = context.Clients.FirstOrDefault(x => x.Email == model.SenderName)?.Id,
Client = context.Clients.FirstOrDefault(x => x.Email == model.SenderName),
MessageId = model.MessageId,
SenderName = model.SenderName,