/// <summary> /// The request to display an empty search page. /// </summary> /// <returns></returns> public ActionResult Index() { FilmSearchByCategory model = new FilmSearchByCategory { Genres = categoryDal.GetCategories() }; return(View(model)); }
public List <CategoryDTO> GetCategories() { try { List <CategoryDTO> catDto = CategoryManager.GetCategories(); return(catDto); } catch { return(null); } }