public List <Chain.Model.MemChild> DataTableToList1(DataTable dt) { List <Chain.Model.MemChild> modelList = new List <Chain.Model.MemChild>(); int rowsCount = dt.Rows.Count; if (rowsCount > 0) { for (int i = 0; i < rowsCount; i++) { Chain.Model.MemChild model = new Chain.Model.MemChild(); modelList.Add(model); } } return(modelList); }
public int Update(Chain.Model.MemChild model) { return(this.dal.Update(model)); }
public int Add(Chain.Model.MemChild model) { return(this.dal.Add(model)); }