public ActionResult Edit(ProfileModel model) { var profile = ProfileModelIMapper.Maptoprofile(model); EmployeeHandler.Update(profile); return(RedirectToAction("Index")); // return View("Index", model); }
public ViewResult Edit() { var user = (User)Session[Constants.LoggedInUserName]; var profile = EmployeeHandler.GetEmployee(user.EmployeeID); var profileModel = ProfileModelIMapper.MapToProfileModel(profile); return(View(profileModel)); }