Example #1
0
        public async Task <IActionResult> Index()
        {
            IndexView model = new IndexView();

            model.Notes = await _notesService.GetAllNotesForDepartmentAsync(DepartmentId);

            return(View(model));
        }
Example #2
0
        public IActionResult Index()
        {
            IndexView model = new IndexView();

            model.Notes = _notesService.GetAllNotesForDepartment(DepartmentId);

            return(View(model));
        }