private int?CurrentPersonId(MembershipUser user = null) { if (user == null) { user = Membership.GetUser(); } if (user != null) { return(user.PersonId()); } return(null); }