public ActionResult <Category> GetCategoryByID(int id)
        {
            Category category = categoryServices.GetCategoryByID(id);

            if (category != null)
            {
                return(category);
            }
            else
            {
                return(BadRequest());
            }
        }
 public Category GetCategoryByID(int id)
 {
     return(categoryServices.GetCategoryByID(id));
 }