public ActionResult EditContact(EditContact editContact) { try { ContactBase contact = DataBase.Contacts.GetByID(this.UserId); editContact.CopyTo(contact, includeProperties: new string[] { "Names", "LastNames", "PhoneNumber" }); DataBase.Contacts.Update(contact); DataBase.Save(); Rp3.Web.Mvc.Session.SetValue(Rp3.Constants.Session.UserFullName, contact.DefaultFullName); this.AddMessage(Rp3.Resources.MessageFor.EditContactSelfSuccess, MessageType.Success); return(HomeRedirect()); } catch { this.AddDefaultErrorMessage(); } return(View(editContact)); }