public async Task <ActionResult> DeleteGameGuilds(int gameId, int guildId) { var email = HttpContext.User.Claims.First(e => e.Type == "Email").Value; var user = await _userManager.FindByEmailAsync(email); var roles = await _userManager.GetRolesAsync(user); if (await _games.VerifyManager(user.Id, gameId) || roles.Contains("Administrator")) { await _games.RemoveGameGuild(gameId, guildId); return(NoContent()); } return(BadRequest("Manager does not have access")); }