示例#1
0
 public ActionResult Profile()
 {
     try
     {
         int id = (Int32)Session["id"];
         return(View(rentRepo.GetById(id)));
     }
     catch (Exception)
     {
         RedirectToAction("LogIn", "User");
     }
     return(RedirectToAction("LogIn", "User"));
     // ViewBag.RentAd = rentRepo.GetById(id);
 }