Changed the default way to modify values in store. Added basic validation to stores. Using interfaces to DI store objects.
This commit is contained in:
@ -35,12 +35,7 @@ namespace HermesSocketServer.Requests
|
||||
Flag = flag,
|
||||
};
|
||||
|
||||
bool result = channel.Filters.Modify(id, f => {
|
||||
f.Search = search;
|
||||
f.Replace = replace;
|
||||
if (flag >= 0)
|
||||
f.Flag = flag;
|
||||
});
|
||||
bool result = channel.Filters.Modify(id, filter);
|
||||
|
||||
if (result)
|
||||
{
|
||||
|
Reference in New Issue
Block a user