public static AspNetOneClass GetTemplateDataforASPNETONE(int RouteId) { TemplateMapsDataContext dbTempMaps = new TemplateMapsDataContext(); List<TempMapping> dbTemplateInfor = (from b in dbTempMaps.TempMappings where b.RouteID == RouteId select b).ToList(); return GetViewModalforASPNETONE(dbTemplateInfor); }
public static int GetRouteID(string RouteName) { TemplateMapsDataContext dbTempMaps = new TemplateMapsDataContext(); List<RouteInfo> dbRouteInfor = (from x in dbTempMaps.RouteInfos where x.RouteName == RouteName select x).ToList(); int RouteID = 0; foreach (RouteInfo Route in dbRouteInfor) { RouteID = Convert.ToInt32(Route.RouteID); } return RouteID; }