public async Task <bool> SaveCategories(CategoryModel[] categoryModels, [FromUri] DateTime?syncdate = null)
        {
            var oldCategories = await _сategoryApplicationService.GetCategoryListAsync(syncdate);

            var categories        = Mapper.CategoryMapper.MapToCategory(categoryModels);
            var deleteCategoryIds = Mapper.CategoryMapper.GetCategoriesForDeleting(categories, oldCategories);

            foreach (var category in categories)
            {
                var categor = await _сategoryApplicationService.UpsertCategoryAsync(category);
            }

            foreach (var deleteCategoryId in deleteCategoryIds)
            {
                await _сategoryApplicationService.DeleteCategoryAsync(deleteCategoryId);
            }
            return(true);
        }