public async Task <IActionResult> Index() { var model = new ProtocolIndexModel(); model.Protocols = await _protocolsService.GetAllProtocolsForDepartmentAsync(DepartmentId); return(View(model)); }
public IActionResult Index() { var model = new ProtocolIndexModel(); model.Protocols = _protocolsService.GetAllProtocolsForDepartment(DepartmentId); return(View(model)); }