diff options
| author | Michael <[email protected]> | 2017-05-20 19:23:42 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-20 19:23:42 -0400 |
| commit | 92bda00b054276e09f0f80b01af91bc3fedbd5b6 (patch) | |
| tree | e51d82ad623a745dde4edc80c9936cb0ba82f002 /Project-Unite/Controllers | |
| parent | 9b06522c668ff8d2c27367529553eab6bded2021 (diff) | |
| download | project-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.cs | 19 |
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 |
