Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public bool Update(Chain.Model.PromotionsShop model)
 {
     return(this.dal.Update(model));
 }
Ejemplo n.º 3
0
 public int Add(Chain.Model.PromotionsShop model)
 {
     return(this.dal.Add(model));
 }