//public static int getCartSize(string empNum) //{ // return CartDAO.getCartSize(empNum); //} public CartWCF getCartSize(string empNum) { CartWCF c = new CartWCF(); c.CartSize = RequestStationaryControler.getCartSize(empNum); return(c); }
public CartWCF[] viewCart(string empNum) { List <RequestStationaryCart> rlist = new List <RequestStationaryCart>(); List <CartWCF> clist = new List <CartWCF>(); rlist = RequestStationaryControler.viewCartW(empNum); foreach (RequestStationaryCart i in rlist) { CartWCF cf = new CartWCF(); cf.ItemCode = i.ItemCode; cf.Qty = i.Quantity; cf.EmpNum = i.EmployeeNumber; cf.ItemDes = ProductDAO.getSearchProductbyid(i.ItemCode).Description.ToString(); cf.ItemUnit = ProductDAO.getSearchProductbyid(i.ItemCode).UnitOfMeasure.ToString(); clist.Add(cf); } return(clist.ToArray <CartWCF>()); }