public async Task <IActionResult> ArchiveNote(int noteId) { var userId = TokenUserId(); if (await note.ArchiveNote(noteId, userId)) { string status = "archive successful"; return(Ok(new { status, userId, noteId })); } else { string status = "archive is not successful"; return(BadRequest(new { status, userId, noteId })); } }