Exemple #1
0
        public bool Create(ProductEntity entity)
        {
            entity.ID = Guid.NewGuid();
            dataStore.Add(entity);

            return true;
        }
Exemple #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;
        }
Exemple #3
0
 public bool Update(ProductEntity entity)
 {
     var bll = BLLFactory.GetBLLByType<IProductBLL>();
     return bll.Update(entity);
 }