Esempio n. 1
0
        public bool Delete(int buildId)
        {
            string funMsg    = "function: Delete(int buildId)" + FileUtility.NewLine + _classMsg;
            var    dbService = new BuildDbService();

            return(dbService.Delete(buildId));
        }
Esempio n. 2
0
        public int AddNew(CentaBuildType model)
        {
            string funMsg    = "function: AddNew(CentaBuildType model)" + FileUtility.NewLine + _classMsg;
            var    dbService = new BuildDbService();

            return(dbService.AddNew(model));
        }
Esempio n. 3
0
        public bool Update(CentaBuildType model)
        {
            string funMsg    = "function: Update(CentaBuildType model)" + FileUtility.NewLine + _classMsg;
            var    dbService = new BuildDbService();

            return(dbService.Update(model));
        }
Esempio n. 4
0
        public List <CentaBuildType> GetList(int pageIndex, int pageSize, out int recordCount)
        {
            string funMsg = "function: GetList(int pageIndex,int pageSize, out int recordCount)" + FileUtility.NewLine +
                            _classMsg;
            var       dbService = new BuildDbService();
            DataTable table     = dbService.GetDataTable(pageIndex, pageSize, out recordCount);

            if (table != null && table.Rows.Count > 0)
            {
                List <CentaBuildType> rs = (from DataRow row in table.Rows select new CentaBuildType(row)).ToList();
                return(rs);
            }
            return(new List <CentaBuildType>());
        }