public static List<SalesDetails> GetSalesDetailsByInvno(string invno) { var dal = new SalesDetailsDAL(); var collection = new List<SalesDetails>(); foreach(DataRow row in dal.GetSalesDetailsByInvno(invno).Rows){ var instance = new SalesDetails(); instance.Bind(row); collection.Add(instance); } return collection; }
public static void InsertSalesDetails(SalesDetails instance, string invstatus) { var dal = new SalesDetailsDAL(); dal.InsertSalesDetails(instance, invstatus); }
public static List<SalesInfo> GetRemarkedSales(string empid, int kioskid) { var dal = new SalesDetailsDAL(); var collection = new List<SalesInfo>(); foreach (DataRow row in dal.GetRemarkedSales(empid, kioskid).Rows) { var instance = new SalesInfo(); instance.Bind(row); collection.Add(instance); } return collection; }