Example #1
0
 public IActionResult AddIdea(Idea idea)
 {
     ideafactory.AddIdea(idea);
     return(RedirectToAction("LoggedIn"));
 }
Example #2
0
 public IActionResult PostIdea(IdeaViewModel ideaModel)
 {
     ideaFactory.AddIdea(ideaModel);
     return(RedirectToAction("Dashboard", "User"));
 }