Exemplo n.º 1
0
 public IActionResult idea(int IdeaId)
 {
     if (HttpContext.Session.GetInt32("currUser") == null || (int)HttpContext.Session.GetInt32("currUser") == 0)
     {
         return(RedirectToAction("Index"));
     }
     else
     {
         ViewBag.idea = ideaFactory.GetIdeaById(IdeaId);
         return(View("Idea"));
     }
 }
Exemplo n.º 2
0
 public IActionResult IdeaInfo(int id)
 {
     ViewBag.idea    = ideafactory.GetIdeaById(id);
     ViewBag.likedby = ideafactory.GetLikersByID(id);
     return(View("IdeaInfo"));
 }