예제 #1
0
 public IActionResult Idea(int post_id)
 {
     if (HttpContext.Session.GetInt32("CurrUserId") != null)
     {
         ViewBag.Post  = postFactory.GetPostById(post_id);
         ViewBag.Users = userFactory.GetUserByPost(post_id);
         return(View("Idea"));
     }
     else
     {
         return(RedirectToAction("Default"));
     }
 }