Commit 2de47257021a6e354c99b6fff451ecdd85475910
1 parent
87b67afd
add one ds with all data
Showing
2 changed files
with
15 additions
and
0 deletions
Show diff stats
src/Maps/Controllers/BusStopController.cs
@@ -36,10 +36,20 @@ namespace Maps.Controllers | @@ -36,10 +36,20 @@ namespace Maps.Controllers | ||
36 | public async Task<IActionResult> Index() | 36 | public async Task<IActionResult> Index() |
37 | { | 37 | { |
38 | var busStops = await _busStopDs.GetIndexListAsync(); | 38 | var busStops = await _busStopDs.GetIndexListAsync(); |
39 | + var SurfaceType = await _surfaceTypeDs.GetSelectListAsync(); | ||
40 | + var StateCommon = await _stateCommonDs.GetSelectListAsync(); | ||
41 | + var Settlement = await _settlementDs.GetSelectListAsync(); | ||
42 | + var Road = await _roadDs.GetSelectListAsync(); | ||
43 | + var Region = await _regionDs.GetSelectListAsync(); | ||
39 | 44 | ||
40 | ListBusStopVm vm = new ListBusStopVm | 45 | ListBusStopVm vm = new ListBusStopVm |
41 | { | 46 | { |
42 | BusStopEditDsM = busStops.ToList(), | 47 | BusStopEditDsM = busStops.ToList(), |
48 | + SurfaceTypeSelectListDsM = SurfaceType.ToList(), | ||
49 | + StateCommonSelectListDsM = StateCommon.ToList(), | ||
50 | + SettlementSelectListDsM = Settlement.ToList(), | ||
51 | + RoadSelectListDsM = Road.ToList(), | ||
52 | + RegionSelectListDsM = Region.ToList() | ||
43 | }; | 53 | }; |
44 | 54 | ||
45 | return Json(vm); | 55 | return Json(vm); |
src/MapsModels/ViewModels/ListBusStopVm.cs
@@ -6,5 +6,10 @@ namespace MapsModels.ViewModels | @@ -6,5 +6,10 @@ namespace MapsModels.ViewModels | ||
6 | public class ListBusStopVm | 6 | public class ListBusStopVm |
7 | { | 7 | { |
8 | public List<BusStopEditDsM> BusStopEditDsM { get; set; } | 8 | public List<BusStopEditDsM> BusStopEditDsM { get; set; } |
9 | + public List<SurfaceTypeSelectListDsM> SurfaceTypeSelectListDsM { get; set; } | ||
10 | + public List<StateCommonSelectListDsM> StateCommonSelectListDsM { get; set; } | ||
11 | + public List<SettlementSelectListDsM> SettlementSelectListDsM { get; set; } | ||
12 | + public List<RoadSelectListDsM> RoadSelectListDsM { get; set; } | ||
13 | + public List<RegionSelectListDsM> RegionSelectListDsM { get; set; } | ||
9 | } | 14 | } |
10 | } | 15 | } |