public ActionResult Index(int id) { var seminar = _seminarRespository.GetNullableById(id); if (seminar == null) { Message = string.Format(Messages.NotFound, "Seminar", id); return(this.RedirectToAction("Index", "Seminar")); } var viewModel = AttendeeListViewModel.Create(seminar, _personService, Site); return(View(viewModel)); }
public AttendeeListView() { InitializeComponent(); DataContext = new AttendeeListViewModel(); }