public async Task <IHttpActionResult> DeleteSupplier(string id) { Supplier supplier = _SVC.GetSupplier(id); if (supplier == null) { return(NotFound()); } await _SVC.DeleteSupplier(supplier); return(Ok(supplier)); }
async public Task <ActionResult> Delete(string xID) { return(Content(await _Server.DeleteSupplier(_Server.GetSupplier(xID)))); }