Exemple #1
0
 public async Task <StaffResult> SaveAsync(string SessionKey, Staff Staff)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await staffProcessor.SaveAsync(Staff, token);
         return new StaffResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Staff = result,
         };
     }, logger));
 }
Exemple #2
0
 public async Task <ActionResult <Staff> > Save(Staff staff, CancellationToken token)
 => await staffProcessor.SaveAsync(staff, token);