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