public async Task <ClosingResult> SaveAsync(string sessionKey, Closing closing) { return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token => { var result = await closingProcessor.SaveAsync(closing, token); return new ClosingResult { ProcessResult = new ProcessResult { Result = true }, Closing = result, }; }, logger)); }
public async Task <ActionResult <Closing> > Save([FromBody] Closing closing, CancellationToken token) => await closingProcessor.SaveAsync(closing, token);