private SolarSystemDto CreateNewSolarSystem(int cordX, int cordY, int cordZ) { var solarSystemDto = GalaxyProceduralGenerator.CreateSolarSystem(cordX, cordY, cordZ); var solarSystem = _mapper.Map <SolarSystem>(solarSystemDto); _context.SolarSystems.Add(solarSystem); _context.SaveChanges(); return(_mapper.Map <SolarSystemDto>(solarSystem));//Double map because all ids are needed }
private bool CheckIfSolarSystemExist(int cordX, int cordY, int cordZ) { return(GalaxyProceduralGenerator.CheckIfSolarSystemExist(cordX, cordY, cordZ)); }