public async Task <ActionResult> PostAsync(Quotation model) { if (!this.ModelState.IsValid) { return(this.InvalidModelState(this.ModelState)); } var meta = await AppUsers.GetCurrentAsync().ConfigureAwait(true); model.UserId = meta.UserId; model.OfficeId = meta.OfficeId; model.AuditUserId = meta.UserId; model.AuditTs = DateTimeOffset.UtcNow; model.TransactionTimestamp = DateTimeOffset.UtcNow; try { long tranId = await Quotations.PostAsync(this.Tenant, model).ConfigureAwait(true); return(this.Ok(tranId)); } catch (Exception ex) { return(this.Failed(ex.Message, HttpStatusCode.InternalServerError)); } }