Ejemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            var model = new CommandIndexView();

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

            return(View(model));
        }
Ejemplo n.º 2
0
        public IActionResult Index()
        {
            var model = new CommandIndexView();

            model.Commands = _commandsService.GetAllCommandsForDepartment(DepartmentId);

            return(View(model));
        }