public IResult Add(Brand brand)
 {
     if (brand.BrandName.Length > 2)
     {
         _brandDao.Add(brand);
         return(new SuccessResult(Messages.BrandAdded));
     }
     else
     {
         return(new ErrorResult(Messages.BrandNameInValid));
     }
 }
Пример #2
0
 public IResult Add(Brand brand)
 {
     _brandDao.Add(brand);
     return(new SuccessResult(Messages.BrandAdded));
 }