public async Task <IActionResult> Index() { IndexView model = new IndexView(); model.Notes = await _notesService.GetAllNotesForDepartmentAsync(DepartmentId); return(View(model)); }
public IActionResult Index() { IndexView model = new IndexView(); model.Notes = _notesService.GetAllNotesForDepartment(DepartmentId); return(View(model)); }