The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AdminController.cs 678B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using Teknik.Areas.Admin.ViewModels;
  7. using Teknik.Attributes;
  8. using Teknik.Controllers;
  9. using Teknik.ViewModels;
  10. namespace Teknik.Areas.Admin.Controllers
  11. {
  12. [TeknikAuthorize(Roles = "Admin")]
  13. public class AdminController : DefaultController
  14. {
  15. public ActionResult Dashboard()
  16. {
  17. DashboardViewModel model = new DashboardViewModel();
  18. return View(model);
  19. }
  20. public ActionResult Search()
  21. {
  22. SearchViewModel model = new SearchViewModel();
  23. return View(model);
  24. }
  25. }
  26. }