public Passage GetPassageByLocationAndCoords(int locationID, int x, int y) { object[] data = context.GetPassageByLocationAndCoords(locationID, x, y); Passage passage = new Passage(Convert.ToInt32(data[2]), Convert.ToInt32(data[5]), Convert.ToInt32(data[6]), Convert.ToInt32(data[7]), Convert.ToInt32(data[8]), GetCurrentLocation(Convert.ToInt32(data[4]))); return(passage); }