public async Task <ActionResult> CancelAsync(long id) { if (id <= 0) { return(this.Failed("Invalid id supplied.", HttpStatusCode.BadRequest)); } var meta = await AppUsers.GetCurrentAsync().ConfigureAwait(true); try { await Quotations.CancelAsync(this.Tenant, id, meta).ConfigureAwait(true); return(this.Ok()); } catch (Exception ex) { return(this.Failed(ex.Message, HttpStatusCode.InternalServerError)); } }