Ejemplo n.º 1
0
 public ActionResult UserProfile(string username, string msg)
 {
     BTourGuideOp tourOp = new BTourGuideOp();
     AUser user = tourOp.GetUser(username);
     List<AReg> userRegs =  tourOp.GetRegistrationsByUserID(user.UserID);
     UserProfile userProfile = new UserProfile();
     UserChanges userChanges = new UserChanges();
     userProfile.UserRegs = userRegs;
     userChanges.UserEmail = user.UserEmail;
     userChanges.UserPhone = user.UserPhone;
     userProfile.UserChanges = userChanges;
     ViewBag.Username = username;
     ViewBag.Msg = msg; // Password change msg
     return View(userProfile);
 }