public static bool UpdatedSelItem(Products ins, int Type, string admin) { var dal = new ProductsDAL(); return dal.UpdatedSelItem(ins, Type, admin); }
public static void UpdateActiveStatus(string status, int id, string admin) { var dal = new ProductsDAL(); dal.UpdateActiveStatus(status, id, admin); }
public static bool InsertNewItem(Products ins, int Type, string admin) { var dal = new ProductsDAL(); return dal.InsertNewItem(ins, Type, admin); }
public static List<Products> GetPhoneByTypeByKiosk(int type, int kioskid) { var dal = new ProductsDAL(); var collection = new List<Products>(); foreach (DataRow row in dal.GetPhoneByTypeByKiosk(type, kioskid).Rows) { var instance = new Products(); instance.Bind2(row); collection.Add(instance); } return collection; }
public static List<Products> GetAllTablets() { var dal = new ProductsDAL(); var collection = new List<Products>(); foreach(DataRow row in dal.GetAllTablets().Rows){ var instance = new Products(); instance.Bind(row); collection.Add(instance); } return collection; }
public static List<Products> GetAllProductsFilterByType(int type, string filter) { var dal = new ProductsDAL(); var collection = new List<Products>(); foreach (DataRow row in dal.GetAllProductsFilterByType(type, filter).Rows) { var instance = new Products(); instance.Bind(row); collection.Add(instance); } return collection; }