public List <WCF_ProcessReq> GetRequests() { processReqController = new ProcessReqSC(); List <WCF_ProcessReq> wcf_reqList = new List <WCF_ProcessReq>(); WCF_ProcessReq req; List <ProcessReqMobile> hhList = processReqController.MobileGrid(); foreach (ProcessReqMobile i in hhList) { req = new WCF_ProcessReq(i.itemid, i.description, (int)i.balance, i.uom, (int)i.tneeded, (int)i.talloted); wcf_reqList.Add(req); } return(wcf_reqList); }
public List <WCF_ProcessReq> GetUpdateRequests(string itemid, string damageqty, string empID) { processReqController = new ProcessReqSC(); List <WCF_ProcessReq> wcf_reqList = new List <WCF_ProcessReq>(); WCF_ProcessReq req; List <ProcessReqMobile> hhList = processReqController.MobileReq(itemid, damageqty, empID); foreach (ProcessReqMobile i in hhList) { req = new WCF_ProcessReq(i.itemid, i.description, (int)i.balance, i.uom, (int)i.tneeded, (int)i.talloted); wcf_reqList.Add(req); } return(wcf_reqList); }