public async Task <IActionResult> Index(int conferenceId) { var conference = await conferenceRepo.GetById(conferenceId); ViewBag.Title = $"Speaker - Proposals For Conference {conference.Name} {conference.Location}"; ViewBag.ConferenceId = conferenceId; return(View(await proposalRepo.GetAllForConference(conferenceId))); }
public IActionResult Index(int conferenceId) { var conference = _conferenceRepository.GetById(conferenceId); ViewBag.Title = $"Speaker - Proposals For Conference {conference.Name} {conference.Location}"; ViewBag.ConferenceId = conferenceId; return(View(_proposalRepository.GetAllForConference(conferenceId))); }
public async Task <IEnumerable <ProposalModel> > GetAll(int conferenceId) { return(await repo.GetAllForConference(conferenceId)); }