public async Task <IActionResult> Movements(int id) { SelectMovementAndAreaViewModel vm = new SelectMovementAndAreaViewModel(); //IEnumerable<Movement> areaForMovementList = await _movementService.GetAllMovementAsync(); vm.allMovements = await _movementService.GetAllMovementAsync(); vm.areaId = id; return(View(vm)); }
public async Task <IActionResult> Index() { return(View(await _movementService.GetAllMovementAsync())); }