Ejemplo n.º 1
0
        public bool Create(ProductEntity entity)
        {
            entity.ID = Guid.NewGuid();
            dataStore.Add(entity);

            return true;
        }
Ejemplo n.º 2
0
        public bool Update(ProductEntity entity)
        {
            var product = GetByID(entity.ID);
            product.Name = entity.Name;
            product.Price = entity.Price;
            product.Category = entity.Category;
            product.Remark = entity.Remark;

            return true;
        }
Ejemplo n.º 3
0
 public bool Update(ProductEntity entity)
 {
     var bll = BLLFactory.GetBLLByType<IProductBLL>();
     return bll.Update(entity);
 }