internal object DeleteNoteById(int id) { Note noteExists = _noterepo.GetNoteById(id); if (noteExists == null) { throw new Exception("Invalid: Cannot Delete Note"); } _noterepo.DeleteNoteById(id); return("Successfully Deleted Note"); }