Мегаважно!!!!!

This commit is contained in:
Artyom_Yashin 2024-05-22 16:28:47 +04:00
parent 27e75f84d9
commit 92fb9ddcc2

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,