diff --git a/BlacksmithWorkshop/BlacksmithWorkshopDatebaseImplement/Implements/MessageInfoStorage.cs b/BlacksmithWorkshop/BlacksmithWorkshopDatebaseImplement/Implements/MessageInfoStorage.cs index f778ceb..c63c955 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopDatebaseImplement/Implements/MessageInfoStorage.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopDatebaseImplement/Implements/MessageInfoStorage.cs @@ -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; }