public ActionResult Put(int id, CategoryUserModel category)
        {
            var element = _categoryService.Update(category.ToModel(), id, AuthorId);

            if (element == null)
            {
                return(NotFound());
            }
            return(Ok(element.ToLink()));
        }
        public ActionResult Post(CategoryUserModel category, int id = 1)
        {
            var newCategory = _categoryService.Create(category.ToModel(), id, AuthorId).ToLink();

            if (newCategory != null)
            {
                return(Created(newCategory.Url, newCategory));
            }
            return(Forbid());
        }