public ActionResult UpdateProfile() { UpdateProfileViewModel updateProfileViewModel = new UpdateProfileViewModel(); AdminProfileViewModel profile = (AdminProfileViewModel)Session["EmployeeObj"]; updateProfileViewModel.EmployeeID = profile.EmployeeID; updateProfileViewModel.FirstName = profile.FirstName; updateProfileViewModel.MiddleName = profile.MiddleName; updateProfileViewModel.LastName = profile.LastName; updateProfileViewModel.Image = profile.Image; updateProfileViewModel.AddressLine1 = profile.AddressLine1; updateProfileViewModel.AddressLine2 = profile.AddressLine2; updateProfileViewModel.AddressLine3 = profile.AddressLine3; updateProfileViewModel.Nationality = profile.Nationality; updateProfileViewModel.MobileNumber = profile.MobileNumber; updateProfileViewModel.DateOfBirth = profile.DateOfBirth; updateProfileViewModel.GenderID = profile.GenderID; updateProfileViewModel.GenderList = genderService.GenderList(); updateProfileViewModel.GenderName = genderService.GetGenderById(profile.GenderID); return(View(updateProfileViewModel)); }