удаление ненужной проверки
This commit is contained in:
parent
994b796785
commit
49f1c34ffb
@ -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