ISEbd-21 Melnikov I. O. Lab Work 07 Base #24

Closed
Igor-Melnikov wants to merge 7 commits from lab7 into lab6
Showing only changes of commit 49f1c34ffb - Show all commits

View File

@ -41,10 +41,6 @@ namespace BlacksmithWorkshopDatabaseImplement.Implements
return null;
}
context.MessageInfos.Add(newMessage);
if (newMessage == null || context.MessageInfos.Any(x => x.MessageId.Equals(model.MessageId)))
{
return null;
}
context.SaveChanges();
return newMessage.GetViewModel;
}