internal String DeleteOne(int id, string userInfoId) { Todo current = GetOne(id); if (current.CreatorId != userInfoId) { throw new SystemException("You are not the creator"); } else { _repo.DeleteOne(id); return("Deleted"); } }