public IHttpActionResult DeleteUom(string UomCode, int Type) { if (!ModelState.IsValid) { return(BadRequest()); } int afRecCnt = UomHelper.DeleteUom(UomCode, Type); if (afRecCnt <= 0) { return(BadRequest()); } return(Ok()); }
public IHttpActionResult DeleteUom(string UomCode, int Type) { if (!ModelState.IsValid) { return(BadRequest()); } int afRecCnt = UomHelper.DeleteUom(UomCode, Type); if (afRecCnt <= 0) { return(BadRequest()); } return(Ok()); }