コード例 #1
0
ファイル: NotesController.cs プロジェクト: mrjohndowe/Core
        public async Task <IActionResult> Index()
        {
            IndexView model = new IndexView();

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

            return(View(model));
        }
コード例 #2
0
ファイル: NotesController.cs プロジェクト: mrpastewart/Core
        public IActionResult Index()
        {
            IndexView model = new IndexView();

            model.Notes = _notesService.GetAllNotesForDepartment(DepartmentId);

            return(View(model));
        }