public async Task <IHttpActionResult> GetAllTeams() { RacingService racingService = CreateRaceService(); var racings = await racingService.GetRaces(); return(Ok(racings)); }
private RacingService CreateRaceService() { //var userId = Guid.Parse(User.Identity.GetUserId()); var raceService = new RacingService(); return(raceService); }