public async Task <IHttpActionResult> DeleteOrder(string id) { Order order = _SVC.GetOrder(id); if (order == null) { return(NotFound()); } await _SVC.DeleteOrder(order); return(Ok(order)); }
async public Task <ActionResult> Delete(string xTransNo) { return(Content(await _Service.DeleteOrder(_Service.GetOrder(xTransNo)))); }