Esempio n. 1
0
        public async Task <IActionResult> DeleteReminderNote(int noteId, DeleteReminderRequest reminder)
        {
            var userId = TokenUserId();

            if (await note.DeleteReminderNote(noteId, userId, reminder))
            {
                string status = "delete reminder successfully";
                return(Ok(new { status, userId, noteId, reminder }));
            }
            else
            {
                string status = "delete reminder not successfully";
                return(BadRequest(new { status, userId, noteId, reminder }));
            }
        }