diff options
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 |
