//[ValidationAspect(typeof(ProductValidator))] //[CacheRemoveAspect("IProductService.Get")] public IResult Update(Producer producer) { //var result = _producerDal.GetAll(p => p.CategoryId == product.CategoryId).Count; //if (result >= 10) //{ // return new ErrorResult(Messages.ProductCountOfCategoryError); //} //throw new NotImplementedException(); _producerDal.Update(producer); return(new SuccessResult(Messages.ProducerAdded)); }
public IResult Update(Producer producer) { _producerDal.Update(producer); return(new SuccessResult(Messages.OperationSuccessful)); }
public void TUpdate(Producer t) { _producerDal.Update(t); }