コード例 #1
0
 public DTO.IngredientGroup Get(GetIngredientGroupRequest request)
 {
     try
     {
         var ingredientGroup = _ingredientGroupRepository.FindBy(request.Id);
         ingredientGroup.ThrowExceptionIfRecordIsNull();
         return(TypeAdapter.Adapt <DTO.IngredientGroup>(ingredientGroup));
     }
     catch (DataAccessException)
     {
         throw new ApplicationException();
     }
 }
コード例 #2
0
 public IngredientGroup Get(GetIngredientGroupRequest request)
 {
     return(_ingredientGroupService.Get(request));
 }