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")); } }
public IActionResult IdeaInfo(int id) { ViewBag.idea = ideafactory.GetIdeaById(id); ViewBag.likedby = ideafactory.GetLikersByID(id); return(View("IdeaInfo")); }