Exemplo n.º 1
0
        public ActionResult Edit(ProfileModel model)
        {
            var profile = ProfileModelIMapper.Maptoprofile(model);

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

            return(View(profileModel));
        }