public async Task <IHttpActionResult> DeleteCommodity(string id)
        {
            Commodity commodity = _SVC.GetCommodity(id);

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

            await _SVC.DeleteCommodity(commodity);

            return(Ok(commodity));
        }
Ejemplo n.º 2
0
 async public Task <ActionResult> Delete(string xID)
 {
     return(Content(await _Service.DeleteCommodity(_Service.GetCommodity(xID))));
 }