public IHttpActionResult getInvItemList(string WarehouseCode, string VendorCode) { if (!ModelState.IsValid) { return(BadRequest()); } var invItemList = WavePickingHelper.getInvItemList(WarehouseCode, VendorCode); if (invItemList == null) { return(InternalServerError()); } return(Ok(invItemList)); }
public IHttpActionResult GeneratePickList(JObject data) { if (!ModelState.IsValid) { return(BadRequest()); } IEnumerable <whiv1> invItemList = data["InvItemList"].ToObject <IEnumerable <whiv1> >(); string warehouseCode = data["WarehouseCode"].ToObject <string>(); string waveBy = data["WaveBy"].ToObject <string>(); IEnumerable <string> pickNos = WavePickingHelper.generatePickList(invItemList, warehouseCode, waveBy); if (pickNos == null) { return(InternalServerError()); } return(Ok(pickNos)); }