public void GetTerrains(BitmapDto model) { var heightMap = new Bitmap(model.Path); TerrainHelper.SetTerrains(BitmapToPixelArray(heightMap)); var terrainHelper = new TerrainHelper(); var terrains = terrainHelper.GetAllTerrains() .Select(t => new TerrainDto() { Type = t.GetType().Name, UpperHeightBound = t.UpperBound }); Clients.All.OnGetTerrainsResponse(terrains); }