예제 #1
0
        public async Task <ActionResult> GetCustomerTransactionSummaryAsync(int customerId)
        {
            if (customerId <= 0)
            {
                return(this.Failed(I18N.BadRequest, HttpStatusCode.BadRequest));
            }

            var meta = await AppUsers.GetCurrentAsync().ConfigureAwait(true);

            var summary = await Receipts.GetCustomerTransactionSummaryAsync(this.Tenant, meta.OfficeId, customerId).ConfigureAwait(true);

            return(this.Ok(summary));
        }