public async Task <IActionResult> Add() { var user = await _authorizerService.Authorize(HttpContext); if (user != null) { var model = new AddDungeonInputModel { Achievements = _achievementsService.All() }; return(View(model)); } return(Redirect(GlobalConstants.Default_Login_Page)); }
public IActionResult Index() { var model = _achievementsService.All()?.ToList(); return(View(model)); }