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)); }
public async Task <ActionResult <Staff> > Save(Staff staff, CancellationToken token) => await staffProcessor.SaveAsync(staff, token);