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.

AbuseController.cs 934B

123456789101112131415161718192021222324252627282930313233
  1. using Microsoft.AspNetCore.Authorization;
  2. using Microsoft.AspNetCore.Mvc;
  3. using Microsoft.Extensions.Logging;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Web;
  8. using Teknik.Areas.Abuse.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.Abuse.Controllers
  16. {
  17. [Authorize]
  18. [Area("Abuse")]
  19. public class AbuseController : DefaultController
  20. {
  21. public AbuseController(ILogger<Logger> logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { }
  22. [AllowAnonymous]
  23. public IActionResult Index()
  24. {
  25. ViewBag.Title = "Abuse Reporting";
  26. ViewBag.Description = "Methods for reporting abuse reports to Teknik Services.";
  27. return View(new AbuseViewModel());
  28. }
  29. }
  30. }