public async Task OnGetAsync() { Note = await _note.FindNotes(ID.GetValueOrDefault()); }
/// <summary> /// This method finds all notes based on customer id /// </summary> /// <param name="customerID">customer id</param> /// <returns></returns> public async Task <IActionResult> Index(int customerID) { var notes = await _context.FindNotes(customerID); return(View(notes)); }