public BlogsCategories AddCategoriesOfBlog(BlogsCategories blogsCategories)
        {
            _context.Add(blogsCategories);
            _context.SaveChanges();

            return(blogsCategories);
        }
 public void DeleteCategories(BlogsCategories blogsCategories)
 {
     _context.BlogsCategories.Remove(blogsCategories);
     _context.SaveChanges();
 }
 public IActionResult DeleteCategories(BlogsCategories blogsCategories)
 {
     _blogsCategoriesServices.DeleteCategories(blogsCategories);
     return(Ok());
 }
        public IActionResult AddCategoriesOfBlog(BlogsCategories blogsCategories)
        {
            var newBlog = _blogsCategoriesServices.AddCategoriesOfBlog(blogsCategories);

            return(CreatedAtRoute("GetAllBlogsCategories", new { newBlog.BlogsId }, newBlog));
        }