public async Task <IActionResult> Delete(int?id) { if (id == null) { return(NotFound()); } var achievement = await _achievementService.FindAchievementById((int)id); if (achievement == null) { return(NotFound()); } return(View(achievement)); }