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