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

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

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

            model.Notes = _notesService.GetAllNotesForDepartment(DepartmentId);

            return(View(model));
        }