Пример #1
0
        public FetchCategoryResponse GetCategories(FetchCategoryRequest fetchCategoryRequest)
        {
            var categorys   = _categoryRepository.GetAllCategory();
            var categoryDto = _messageMapper.MapToCategoryDtos(categorys);

            return(new FetchCategoryResponse
            {
                Categories = categoryDto
            });
        }
Пример #2
0
        public FetchCategoryResponse FetchCategory(FetchCategoryRequest fetchcategoryRequest)
        {
            var category     = categoryRepository.GetAllcategories();
            var CategoryDtos = messageMapper.MapToCategoryDtos(category);

            return(new FetchCategoryResponse
            {
                Categories = CategoryDtos
            });
        }