public async Task <ActionResult> Stops(int id, int centerNumber, string routeNumber, string position) { var model = new RouteStopViewModel(await RouteService.GetByRouteIdAndCenterNumberAndRouteNumberAsync(id, centerNumber, routeNumber)); model.Position = position; return(PartialView("_stopList", model)); }
public RouteStopPage() { BindingContext = new RouteStopViewModel(); InitializeComponent(); var pin = new CustomPin { Type = PinType.Place, Position = new Position(41.411835, -75.665245), Label = "The Office", Address = "Scranton PA", Id = "Xamarin", Url = "http://xamarin.com/about/" }; // customMap.CustomPins = new List<CustomPin> { pin }; customMap.PinCollection = new ObservableRangeCollection <CustomPin> { pin }; customMap.Pins.Add(pin); //customMap.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(37.79752, -122.40183), Distance.FromMiles(1.0))); }
public async Task <ActionResult> Stops(int routeId) { var routeWithStops = await RouteService.GetByRouteIdAsync(routeId); var model = new RouteStopViewModel(routeWithStops) { StopColumnOption = new ColumnOptionViewModel(await LookUpService.GetColumnOptionsForUserAndPage(UserName, "ROUTETRACKERSTOPS"), ColumnTypes.Stop) }; return(PartialView("_stopList", model)); }