Exemple #1
0
        public async Task <IActionResult> DeleteNote()
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            await _noteService.DeleteAll();

            return(NoContent());
        }