public ActionResult Details(string Slug) { if (!string.IsNullOrWhiteSpace(Slug)) { var model = TheaterRepo.GetSingle(Slug: Slug); if (model != null) { return(View(model)); } } return(HttpNotFound()); }
public ActionResult Index() { var model = TheaterRepo.ListTheaters(); return(View(model)); }