Пример #1
0
 public IResult Update(Product product)
 {
     try
     {
         productDataAccess.Updated(product);
     }
     catch (Exception ex)
     {
         var builder = new StringBuilder();
         return(new ErrorResult(false, builder.Append(ex.Message).Append(ex.InnerException.Message).ToString()));
     }
     return(new SuccessResult(Messages.ProductAdded));
 }