Ejemplo n.º 1
0
        public IActionResult Index()
        {
            var model = new ProtocolIndexModel();

            model.Protocols = _protocolsService.GetAllProtocolsForDepartment(DepartmentId);

            return(View(model));
        }
Ejemplo n.º 2
0
        public List <ProtocolResult> GetAllProtocols()
        {
            var results    = new List <ProtocolResult>();
            var department = _departmentsService.GetDepartmentById(DepartmentId, false);


            var protocols = _protocolsService.GetAllProtocolsForDepartment(DepartmentId);

            foreach (var p in protocols)
            {
                results.Add(ProtocolResult.Convert(p));
            }

            return(results);
        }