Фикс функции создания письма в реализации хранилищп для списка
This commit is contained in:
parent
bc20162bb9
commit
8da9d8b59c
@ -2,6 +2,7 @@
|
||||
using SecuritySystemContracts.SearchModels;
|
||||
using SecuritySystemContracts.StoragesContracts;
|
||||
using SecuritySystemContracts.ViewModels;
|
||||
using SecuritySystemListImplement.Models;
|
||||
|
||||
namespace SecuritySystemListImplement.Implements
|
||||
{
|
||||
@ -39,7 +40,13 @@ namespace SecuritySystemListImplement.Implements
|
||||
|
||||
public MessageInfoViewModel? Insert(MessageInfoBindingModel model)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
var messageInfo = MessageInfo.Create(model);
|
||||
if (messageInfo == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
_source.MessageInfos.Add(messageInfo);
|
||||
return messageInfo.GetViewModel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user