public void HostUserTearDown() { hostUserViewModel = new HostUserViewModel { ID = hostUser.Id, UserName = "******", }; hostUserAppService.UpdateHostUser(hostUserViewModel); }
public ActionResult Edit(HostUserViewModel updateHostUser) { if (ModelState.IsValid) { hostAppService.UpdateHostUser(updateHostUser); return(RedirectToAction("Details", new { id = updateHostUser.ID })); } return(View(updateHostUser)); }