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); }
public bool Update(Chain.Model.SysModule model) { return(this.dal.Update(model)); }
public int Add(Chain.Model.SysModule model) { return(this.dal.Add(model)); }