public ActionResult EditProfile(string username) { Person CU; if (username == null) { CU = reposetory.CurrentUser(); } else { CU = reposetory.GetPerson(username); } NR.Models.PersonProfile VM = new NR.Models.PersonProfile(); VM.PersonID = CU.PersonID; VM.Username = CU.UserName; VM.FirstName = CU.FirstName; VM.FamilyName = CU.FamilyName; VM.Email = CU.Email; VM.Mobil = CU.Mobile; VM.Phone = CU.Phone; VM.Gender = CU.Gender; VM.BirthDate = CU.BirthDate; VM.Address = CU.Address; VM.Zip = CU.Zip; VM.City = CU.City; VM.Country = CU.Country; return(View(VM)); }