public GameControllerServices(UsedGamesAPIGames usedGamesAPIGames, UsedGamesAPIPlatforms usedGamesAPIPlatforms, IConfiguration configuration, SellerLoginManager loginManager) { _usedGamesAPIGames = usedGamesAPIGames; _usedGamesAPIPlatforms = usedGamesAPIPlatforms; _configuration = configuration; _loginManager = loginManager; }
private async Task <UsedGamesAPIPlatformResponse> GetPlatformsAsync(ActionExecutingContext context) { UsedGamesAPIPlatforms usedGamesAPIPlatforms = (UsedGamesAPIPlatforms)context.HttpContext.RequestServices.GetService(typeof(UsedGamesAPIPlatforms)); return(await usedGamesAPIPlatforms.GetPlatformsAsync()); }