public ActionResult Profile(string id, ProfileViewModel profilo) { /*GeCoSurvey.Service.UserProfile profilo = new GeCoSurvey.Service.UserProfile(); profilo.Nome = form["Nome"]; profilo.Cognome = form["Cognome"]; profilo.Area = form["Area"]; profilo.Matricola = form["Matricola"];*/ _userServiceGeco.SalvaProfilo(id, profilo); return RedirectToAction("Index"); }
public ActionResult Profile(string id) { //GetUtente(string username) GeCoSurvey.Service.IUserProperties props = _userServiceGeco.GetUtente(id); //Popolo ProfileViewModel var profileVM = new ProfileViewModel(); profileVM.Username = id; profileVM.Matricola = props.Matricola; profileVM.Nome = props.Nome; profileVM.Cognome = props.Cognome; profileVM.Area = props.Area; return View(profileVM); }