public static List<Booklet> GetAllData() { var dal = new BookletDAL(); var collection = new List<Booklet>(); foreach(DataRow row in dal.GetAllData().Rows){ var instance = new Booklet(); instance.Bind(row); collection.Add(instance); } return collection; }
public static bool InsertNewSeries(Booklet instance) { var dal = new BookletDAL(); return dal.InsertNewSeries(instance); }
public static bool UpdateSelectedSeries(Booklet instance) { var dal = new BookletDAL(); return dal.UpdateSelectedSeries(instance); }
public static int ValidateSeries(string prefix, string digits, int kioskid) { var dal = new BookletDAL(); return dal.ValidateSeries(prefix, digits, kioskid); }
public static Booklet SelectByID(int id) { var dal = new BookletDAL(); DataRow row = dal.SelectByID(id); var instance = new Booklet(); instance.Bind(row); return instance; }