public bool Create(ProductEntity entity) { entity.ID = Guid.NewGuid(); dataStore.Add(entity); return true; }
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; }
public bool Update(ProductEntity entity) { var bll = BLLFactory.GetBLLByType<IProductBLL>(); return bll.Update(entity); }