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

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