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.

FAQController.cs 796B

12345678910111213141516171819202122232425262728
  1. using Microsoft.AspNetCore.Authorization;
  2. using Microsoft.AspNetCore.Mvc;
  3. using Microsoft.Extensions.Logging;
  4. using Teknik.Areas.FAQ.ViewModels;
  5. using Teknik.Attributes;
  6. using Teknik.Configuration;
  7. using Teknik.Controllers;
  8. using Teknik.Data;
  9. using Teknik.Filters;
  10. using Teknik.Logging;
  11. namespace Teknik.Areas.FAQ.Controllers
  12. {
  13. [Authorize]
  14. [Area("FAQ")]
  15. public class FAQController : DefaultController
  16. {
  17. public FAQController(ILogger<Logger> logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { }
  18. [AllowAnonymous]
  19. public IActionResult Index()
  20. {
  21. ViewBag.Title = "Frequently Asked Questions";
  22. FAQViewModel model = new FAQViewModel();
  23. return View(model);
  24. }
  25. }
  26. }