Example #1
0
 public DTO.Ingredient Get(GetIngredientRequest request)
 {
     try
     {
         var ingredient = _ingredientRepository.FindBy(request.Id);
         ingredient.ThrowExceptionIfRecordIsNull();
         return(_ingredientFactory.Execute(ingredient));
     }
     catch (DataAccessException)
     {
         throw new ApplicationException();
     }
 }