public async Task <IActionResult> Index() { var model = new CommandIndexView(); model.Commands = await _commandsService.GetAllCommandsForDepartmentAsync(DepartmentId); return(View(model)); }
public IActionResult Index() { var model = new CommandIndexView(); model.Commands = _commandsService.GetAllCommandsForDepartment(DepartmentId); return(View(model)); }