lab-7-hard fix one stupid mistake
This commit is contained in:
parent
1e75647ce8
commit
3575954f45
@ -42,7 +42,7 @@ namespace BlacksmithWorkshopDatabaseImplement.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