Exemplo n.º 1
0
        public async Task <IActionResult> RemoveAccessAsync(int id)
        {
            var loggedUser = await DiscordClient.GetUserFromClaimsAsync(User);

            await TempUnverifyService.ReturnAccessAsync(id, loggedUser);

            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public TempUnverifyModule(TempUnverifyService unverifyService, PaginationService paginationService) : base(paginationService: paginationService)
 {
     UnverifyService = unverifyService;
 }
Exemplo n.º 3
0
 public SelfUnverifyModule(TempUnverifyService unverifyService)
 {
     UnverifyService = unverifyService;
 }
Exemplo n.º 4
0
        public async Task <IActionResult> IndexAsync()
        {
            var unverified = await TempUnverifyService.ListPersonsAsync(null);

            return(View(new UnverifyCurrentStatusViewModel(unverified)));
        }
Exemplo n.º 5
0
 public UnverifyController(TempUnverifyLogService tempUnverifyLogService, TempUnverifyService tempUnverifyService, DiscordSocketClient discordClient)
 {
     TempUnverifyService    = tempUnverifyService;
     TempUnverifyLogService = tempUnverifyLogService;
     DiscordClient          = discordClient;
 }