public void EditUserProfile(NAA_User_Profile editProfile) { NAA_User_Profile currentProfile = GetUserProfile(editProfile.UserID); currentProfile.ApplicantName = editProfile.ApplicantName; currentProfile.ApplicantAddress = editProfile.ApplicantAddress; currentProfile.Phone = editProfile.Phone; currentProfile.Email = editProfile.Email; _context.SaveChanges(); }
public ActionResult EditUserProfile(int ApplicantID, NAA_User_Profile editProfile) { _profileService.EditUserProfile(editProfile); return(RedirectToAction("ShowUserProfile", new { ApplicantID = editProfile.ApplicantID, Controller = "Applicant" })); }
public ActionResult CreateUserProfile(NAA_User_Profile newProfile) { _profileService.CreateUserProfile(newProfile); return(RedirectToAction("ShowUserProfile", new { UserID = newProfile.UserID, Controller = "Applicant" })); }
public void EditUserProfile(NAA_User_Profile editProfile) { _NAADAO.EditUserProfile(editProfile); }
public void CreateUserProfile(NAA_User_Profile newProfile) { _NAADAO.CreateUserProfile(newProfile); }
public void CreateUserProfile(NAA_User_Profile newProfile) { _context.NAA_User_Profile.Add(newProfile); _context.SaveChanges(); }