summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-20 19:23:42 -0400
committerMichael <[email protected]>2017-05-20 19:23:42 -0400
commit92bda00b054276e09f0f80b01af91bc3fedbd5b6 (patch)
treee51d82ad623a745dde4edc80c9936cb0ba82f002 /Project-Unite/Controllers
parent9b06522c668ff8d2c27367529553eab6bded2021 (diff)
downloadproject-unite-92bda00b054276e09f0f80b01af91bc3fedbd5b6.tar.gz
project-unite-92bda00b054276e09f0f80b01af91bc3fedbd5b6.tar.bz2
project-unite-92bda00b054276e09f0f80b01af91bc3fedbd5b6.zip
Contests index page
Diffstat (limited to 'Project-Unite/Controllers')
-rw-r--r--Project-Unite/Controllers/ContestsController.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Project-Unite/Controllers/ContestsController.cs b/Project-Unite/Controllers/ContestsController.cs
new file mode 100644
index 0000000..8439008
--- /dev/null
+++ b/Project-Unite/Controllers/ContestsController.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Mvc;
+using Project_Unite.Models;
+
+namespace Project_Unite.Controllers
+{
+ public class ContestsController : Controller
+ {
+ // GET: Contests
+ public ActionResult Index()
+ {
+ var model = new ApplicationDbContext().Contests.ToArray();
+ return View(model);
+ }
+ }
+} \ No newline at end of file