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