Пример #1
0
        public List <Chain.Model.SysModule> DataTableToList(DataTable dt)
        {
            List <Chain.Model.SysModule> modelList = new List <Chain.Model.SysModule>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                for (int i = 0; i < rowsCount; i++)
                {
                    Chain.Model.SysModule model = this.dal.DataRowToModel(dt.Rows[i]);
                    if (model != null)
                    {
                        modelList.Add(model);
                    }
                }
            }
            return(modelList);
        }
Пример #2
0
 public bool Update(Chain.Model.SysModule model)
 {
     return(this.dal.Update(model));
 }
Пример #3
0
 public int Add(Chain.Model.SysModule model)
 {
     return(this.dal.Add(model));
 }