コード例 #1
0
 public ActionResult Details(string Slug)
 {
     if (!string.IsNullOrWhiteSpace(Slug))
     {
         var model = TheaterRepo.GetSingle(Slug: Slug);
         if (model != null)
         {
             return(View(model));
         }
     }
     return(HttpNotFound());
 }
コード例 #2
0
        public ActionResult Index()
        {
            var model = TheaterRepo.ListTheaters();

            return(View(model));
        }