public async Task <IActionResult> List([FromQuery] string key) { var user = await _userManager.GetUserAsync(User); var notes = await _notesMng.NotesForUser(user); return(Json(notes.Select(n => _outputFactory.CreateNote(n, key)))); }
public async Task <IActionResult> List([FromQuery] string key) { var user = await _userManager.GetUserAsync(User); var notes = await _notesMng.NotesForUser(user); return(Json(notes.Select(n => _outputFactory.CreateNote(n, key)))); }