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.

AboutController.cs 918B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Microsoft.AspNetCore.Authorization;
  6. using Microsoft.AspNetCore.Mvc;
  7. using Microsoft.Extensions.Logging;
  8. using Teknik.Areas.About.ViewModels;
  9. using Teknik.Attributes;
  10. using Teknik.Configuration;
  11. using Teknik.Controllers;
  12. using Teknik.Data;
  13. using Teknik.Filters;
  14. using Teknik.Logging;
  15. namespace Teknik.Areas.About.Controllers
  16. {
  17. [Authorize]
  18. [Area("About")]
  19. public class AboutController : DefaultController
  20. {
  21. public AboutController(ILogger<Logger> logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { }
  22. [AllowAnonymous]
  23. public IActionResult Index([FromServices] Config config)
  24. {
  25. ViewBag.Title = "About";
  26. ViewBag.Description = "What is Teknik?";
  27. return View(new AboutViewModel());
  28. }
  29. }
  30. }