public async Task <BillMemoResult> GetMemoAsync(string SessionKey, long Id) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await billingMemoProcessor.GetMemoAsync(Id, token); return new BillMemoResult { ProcessResult = new ProcessResult { Result = true }, BillingMemo = result, }; }, logger)); }
public async Task <string> GetMemo([FromBody] long id, CancellationToken token) => await billingMemoProcessor.GetMemoAsync(id, token);