Exemplo n.º 1
0
        public async Task <IHttpActionResult> DeletePurchase(string id)
        {
            Purchase purchase = _SVC.GetPurchase(id);

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

            await _SVC.DeletePurchase(purchase);

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