public async Task <ActionResult> GetStatementAsync(AccountStatementQueryModel model) { if (!this.ModelState.IsValid) { return(this.InvalidModelState(this.ModelState)); } var meta = await AppUsers.GetCurrentAsync().ConfigureAwait(false); try { model.UserId = meta.UserId; model.OfficeId = meta.OfficeId; var result = await Reconciliations.GetAccountStatementAsync(this.Tenant, model).ConfigureAwait(true); return(this.Ok(result)); } catch (Exception ex) { return(this.Failed(ex.Message, HttpStatusCode.InternalServerError)); } }