public ActionResult Edit(int id) { Usuario Usuario = new Usuario(); UserAccount UserAccount = new UserAccount(); UserPhoto UserPhoto = new UserPhoto(); UserAccountPhoto data = new UserAccountPhoto(); List <UserAccountPhoto> dataList = new List <UserAccountPhoto>(); Usuario = _usuarioBusiness.GetUsuario(id); UserAccount = _useraccountBusiness.GetUserAccount(id); UserPhoto = _userphotoBusiness.GetUserPhoto(id); return(View(data)); }
public ActionResult Edit(int id) { Usuario Usuario = new Usuario(); UserAccount UserAccount = new UserAccount(); UserPhoto UserPhoto = new UserPhoto(); UserAccountPhoto data = new UserAccountPhoto(); List <UserAccountPhoto> dataList = new List <UserAccountPhoto>(); Usuario = _usuarioBusiness.GetUsuario(id); UserAccount = _useraccountBusiness.GetUserAccount(id); //UserPhoto = _userphotoBusiness.GetUserPhoto(id); data.ID = Usuario.ID; data.Name = Usuario.Name; data.LastName = Usuario.LastName; data.UserName = UserAccount.UserName; data.Password = UserAccount.Password; return(View(data)); }