예제 #1
0
        public GetCategoryResponseDto Get(int id)
        {
            var category = _categoryRepository.Get(id);

            DomainException.ThrowIf(category == null, DomainExeptionCode.CategoryNotFound);

            var response = _mapper.Map <GetCategoryResponseDto>(category);

            return(response);
        }