예제 #1
0
        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));
        }
예제 #2
0
 public AttendeeListView()
 {
     InitializeComponent();
     DataContext = new AttendeeListViewModel();
 }