Beispiel #1
0
        public async Task <IActionResult> Index()
        {
            var model = new CommandIndexView();

            model.Commands = await _commandsService.GetAllCommandsForDepartmentAsync(DepartmentId);

            return(View(model));
        }
Beispiel #2
0
        public IActionResult Index()
        {
            var model = new CommandIndexView();

            model.Commands = _commandsService.GetAllCommandsForDepartment(DepartmentId);

            return(View(model));
        }