ПИбд-23 Яшин Артем Александрович Лабораторная работа №7 усложненная #16
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user