Exemplo n.º 1
0
        public async Task <IHttpActionResult> DeleteOrder(string id)
        {
            Order order = _SVC.GetOrder(id);

            if (order == null)
            {
                return(NotFound());
            }

            await _SVC.DeleteOrder(order);

            return(Ok(order));
        }
Exemplo n.º 2
0
 async public Task <ActionResult> Delete(string xTransNo)
 {
     return(Content(await _Service.DeleteOrder(_Service.GetOrder(xTransNo))));
 }