Example #1
0
 public async Task OnGetAsync()
 {
     Note = await _note.FindNotes(ID.GetValueOrDefault());
 }
Example #2
0
        /// <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));
        }