public IHttpActionResult saveAsnOrder(whar1 AsnOrder) { if (!ModelState.IsValid) { return(BadRequest()); } int TrxNo = AsnOrderHelper.SaveAsnOrder(AsnOrder); if (TrxNo <= 0) { return(BadRequest()); } return(Ok(TrxNo)); }
public IHttpActionResult deleteAsnOrderDetail(int TrxNo, int LineItemNo) { if (!ModelState.IsValid) { return(BadRequest()); } int afRecCnt = AsnOrderHelper.DeleteAsnOrderDetail(TrxNo, LineItemNo); if (afRecCnt <= 0) { return(BadRequest()); } return(Ok()); }
public IHttpActionResult getNewAsnOrderNo(DateTime AsnOrderDate) { if (!ModelState.IsValid) { return(BadRequest()); } string newAsnOrderNo = AsnOrderHelper.GetNewAsnOrderNo(AsnOrderDate); if (string.IsNullOrEmpty(newAsnOrderNo)) { return(BadRequest()); } return(Ok(newAsnOrderNo)); }
public IHttpActionResult saveAsnOrderDetails(List <whar2> AsnOrderDetails) { if (!ModelState.IsValid) { return(BadRequest()); } int afRecCnt = AsnOrderHelper.SaveAsnOrderDetails(AsnOrderDetails); if (afRecCnt <= 0) { return(BadRequest()); } return(Ok()); }
public IHttpActionResult GetAsnOrderDetail(int TrxNo, int LineItemNo) { if (!ModelState.IsValid) { return(BadRequest()); } var myAsnOrderDetail = AsnOrderHelper.GetAsnOrderDetail(TrxNo, LineItemNo); if (myAsnOrderDetail == null) { return(BadRequest()); } return(Ok(myAsnOrderDetail)); }
public IHttpActionResult deleteAsnOrder(int TrxNo, int Type) { if (!ModelState.IsValid) { return(BadRequest()); } int afRecCnt = AsnOrderHelper.DeleteAsnOrder(TrxNo, Type); if (afRecCnt <= 0) { return(BadRequest()); } return(Ok()); }
public IHttpActionResult saveAsnOrderDetail(whar2 AsnOrderDetail) { // incorrect date issue if (!ModelState.IsValid) { return(BadRequest()); } int afRecCnt = AsnOrderHelper.SaveAsnOrderDetail(AsnOrderDetail); if (afRecCnt <= 0) { return(BadRequest()); } return(Ok()); }
public IHttpActionResult getAsnOrder(int TrxNo) { if (!ModelState.IsValid) { return(BadRequest()); } var asnOrder = AsnOrderHelper.GetAsnOrder(TrxNo); var asnOrderDetails = AsnOrderHelper.GetAsnOrderDetails(TrxNo); if (asnOrder == null) { return(BadRequest()); } var data = new { asnOrder, asnOrderDetails }; return(Ok(data)); }