public IActionResult Index(int conferenceId)
        {
            var conference = conferenceRepo.GetById(conferenceId);

            ViewBag.Title        = $"Speaker - Proposals For Conference {conference.Name} {conference.Location}";
            ViewBag.ConferenceId = conferenceId;

            return(View(proposalRepo.GetAllForConference(conferenceId)));
        }
예제 #2
0
        public IActionResult Index(string conferenceId)
        {
            var deCryptedConferenceId = int.Parse(protector.Unprotect(conferenceId));
            var conference            = conferenceRepo.GetById(deCryptedConferenceId);

            ViewBag.Title        = $"Speaker - Proposals For Conference {conference.Name} {conference.Location}";
            ViewBag.ConferenceId = conferenceId;

            return(View(proposalRepo.GetAllForConference(deCryptedConferenceId)));
        }