public ActionResult Edit(int id) { var model = new CreateEditViewModel(); var userLogin = securityProvider.GetUserLogin(id); Mapper.DynamicMap(userLogin, model); return(PartialView("Edit", model)); }