public async Task <IActionResult> Delete(int id) { await _repository.DeleteNote(id); return(NoContent()); }