From 92bda00b054276e09f0f80b01af91bc3fedbd5b6 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 20 May 2017 19:23:42 -0400 Subject: Contests index page --- Project-Unite/Controllers/ContestsController.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Project-Unite/Controllers/ContestsController.cs (limited to 'Project-Unite/Controllers/ContestsController.cs') 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 -- cgit v1.2.3