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

            return(await usedGamesAPIPlatforms.GetPlatformsAsync());
        }