Esempio n. 1
0
        public async Task <IActionResult> Index()
        {
            var model = new ProtocolIndexModel();

            model.Protocols = await _protocolsService.GetAllProtocolsForDepartmentAsync(DepartmentId);

            return(View(model));
        }
Esempio n. 2
0
        public IActionResult Index()
        {
            var model = new ProtocolIndexModel();

            model.Protocols = _protocolsService.GetAllProtocolsForDepartment(DepartmentId);

            return(View(model));
        }