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(); } }
public IngredientGroup Get(GetIngredientGroupRequest request) { return(_ingredientGroupService.Get(request)); }