public async Task <CategoryDto> GetAsync(int userId, int id)
        {
            var model = await _categoryRepository.GetAsync(userId, id);

            var result = CategoryDtoMapper.Map(model);

            return(result);
        }
        public async Task <IList <CategoryDto> > GetAsync(int userId, PagingOptions pagingOptions)
        {
            var models = await _categoryRepository.GetAsync(userId, null, pagingOptions);

            var results = CategoryDtoMapper.Map(models);

            return(results);
        }
        public async Task <CategoryDto> AddAsync(int userId, CategoryDto dto)
        {
            var model    = CategoryMapper.Map(dto);
            var newModel = await _categoryRepository.AddAsync(userId, model);

            var result = CategoryDtoMapper.Map(newModel);

            return(result);
        }