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))); }
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))); }