public ActionResult Profile() { BGBC.Model.User user = _userRepository.Get(((BGBC.Core.CustomPrincipal)(User)).UserId); UserProfile userProfile = new TenantProfile { FirstName = user.FirstName, LastName = user.LastName, Email = user.Email, ConfirmEmail = user.Email, Createdon = user.Createdon, Updatedon = user.Updatedon }; return(View(userProfile)); }
public ActionResult Profile() { PopulateDropDown(); BGBC.Model.User user = _userRepository.Get(((BGBC.Core.CustomPrincipal)(User)).UserId); Profile profile = _profileRepo.Get(((BGBC.Core.CustomPrincipal)(User)).UserId); UserProfile userProfile = new UserProfile { FirstName = user.FirstName, LastName = user.LastName, Email = user.Email, ConfirmEmail = user.Email, Createdon = user.Createdon, Updatedon = user.Updatedon, AltEmail = profile.AltEmail, ProfileInfo = profile }; return(View(userProfile)); }
public ActionResult Index() { BGBC.Model.User user = _userRepository.Get(((BGBC.Core.CustomPrincipal)(User)).UserId); return(View(user)); }