public ActionResult profile() { if (Session["user_id"] == null) { return(RedirectToAction("LoginUser", "Home")); } else { int id = int.Parse(Session["user_id"].ToString()); UsersVM user = userbll.getUserByID2(id); return(View(user)); } }
public ActionResult profile() { if (Session["user_id"] == null) { return(RedirectToAction("LoginUser", "Home")); } else { int id = int.Parse(Session["user_id"].ToString()); UsersVM user = userbll.getUserByID2(id); return(View(user)); } }