public IActionResult AddPost(BlogPost post) { BlogDb db = new BlogDb(); int id = db.AddBlogPost(post); return(Redirect($"/home/displaypost?blogId={id}")); }