public async Task <IHttpActionResult> DeleteCommodity(string id) { Commodity commodity = _SVC.GetCommodity(id); if (commodity == null) { return(NotFound()); } await _SVC.DeleteCommodity(commodity); return(Ok(commodity)); }
async public Task <ActionResult> Delete(string xID) { return(Content(await _Service.DeleteCommodity(_Service.GetCommodity(xID)))); }