Exemplo n.º 1
0
        //[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));
        }
Exemplo n.º 2
0
 public IResult Update(Producer producer)
 {
     _producerDal.Update(producer);
     return(new SuccessResult(Messages.OperationSuccessful));
 }
Exemplo n.º 3
0
 public void TUpdate(Producer t)
 {
     _producerDal.Update(t);
 }