public static int LargestBoulderRouteNoByWall(string wallId) { IEnumerable <BoulderRoute> boulderRoutesOfTheWall = BoulderRoutes.Where(x => x.Wall == wallId); if (boulderRoutesOfTheWall.Any()) { return(boulderRoutesOfTheWall.Select(x => int.Parse(x.RouteNo)).Max()); } else { return(0); } }
public static BoulderRoute BoulderRouteById(string routeId) { return(BoulderRoutes.Where(x => x.RouteID == routeId).Single()); }
public static IEnumerable <BoulderRoute> BoulderRoutesByWall(string wallId) { return(BoulderRoutes.Where(x => x.Wall == wallId)); }