ISEbd-21 Melnikov I. O. Lab Work 07 Base #24
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user