This commit is contained in:
2020-07-10 21:39:17 +00:00
parent 920ccf7250
commit e2e38b62c7
4 changed files with 66 additions and 6 deletions

View File

@@ -101,6 +101,8 @@ namespace AyaNova.Biz
//
internal async Task<NotifySubscription> PutAsync(NotifySubscription putObject)
{
//TODO: Must remove all prior events and replace them
NotifySubscription dbObject = await ct.NotifySubscription.SingleOrDefaultAsync(z => z.Id == putObject.Id);
if (dbObject == null)
{
@@ -187,7 +189,7 @@ namespace AyaNova.Biz
//todo: validate subscription is valid
//perhaps check if customer type user doesn't have non customer notification etc
//NOTE: In DB schema only name and serial are not nullable
//run validation and biz rules