public async Task <IActionResult> DeleteNote() { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await _noteService.DeleteAll(); return(NoContent()); }