//TODO: Moet een dokter ook niet de treatment details kunnen inzien?
        public IActionResult Details(long id)
        {
            // Check if id is set
            if (id < 1)
            {
                return(BadRequest("No user found"));
            }

            // Retrieve from db
            TreatmentType model             = repository.GetById(id);
            TreatmentTypeDetailViewModel vm = converter.ModelToViewModel(model);

            // Get all departments for select list
            List <Department>            departments = departmentRepository.GetAll();
            IEnumerable <SelectListItem> items       =
                from value in departments
                select new SelectListItem
            {
                Text     = value.Name,
                Value    = value.Id.ToString(),
                Selected = (value.Id == vm.DepartmentId)
            };

            vm.Departments = items.ToList();

            return(View(vm));
        }
        /// <summary>
        /// Get department by id
        /// </summary>
        /// <param name="id">Id filter</param>
        /// <returns>Detail page of department</returns>
        public IActionResult Details(long id)
        {
            // Check if id is set
            if (id < 1)
            {
                return(BadRequest("Id cannot be 0"));
            }

            // Retrieve department
            Department department = departmentRepository.GetById(id);

            if (department == null)
            {
                return(BadRequest("Department could not be found"));
            }

            // Assign and return view
            DepartmentDetailViewModel vm = converter.ModelToViewModel(department);

            vm.Institutions = GetInstitutionsForDropdown(vm.Id).ToList();
            return(View(vm));
        }