Example #1
0
 public async Task <CategoryResult> SaveAsync(string SessionKey, Category Category)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await categoryProcessor.SaveAsync(Category, token);
         return new CategoryResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Category = result,
         };
     }, logger));
 }
Example #2
0
 public async Task <ActionResult <Category> > Save(Category category, CancellationToken token)
 => await categoryProcessor.SaveAsync(category, token);