public async Task <object> AddCategoryToService(Categories_Services request)
        {
            if (!ModelState.IsValid)
            {
                return(JsonResults.Error(400, ModelState.Values.FirstOrDefault().Errors.FirstOrDefault().ErrorMessage.ToString()));
            }

            try
            {
                var model = new Categories_Services
                {
                    IdCategories = request.IdCategories,
                    IdServices   = request.IdServices
                };

                await _categoryService.AddCategoryToService(model);

                return(JsonResults.Success());
            }
            catch (Exception ex)
            {
                return(JsonResults.Error(400, ex.Message));
            }
        }