/// <summary> /// Shows edit page for the projection /// </summary> public async Task <IActionResult> Edit(string id) { if (id == null) { return(NotFound()); } var projection = await filmProjectionBusiness.GetAsync(id); if (projection == null) { return(NotFound()); } var films = filmDataBusiness.GetAll().ToList().OrderBy(x => x.Title). ToDictionary(x => x.FilmId, x => x.Title); ViewBag.SelectListOfFilms = new SelectList(films, "Key", "Value"); return(View(projection)); }
///<summary> /// Films default page for listing ///</summary> public IActionResult Index() { var model = filmDataBusiness.GetAll(); return(View(model)); }