public PartyInfo GetPartyInfo(int partyId) { var party = PartyRepository.GetPartyById(partyId); if (party != null && party.STATUS != (int)PartyStatuses.DELETED) { var info = new PartyInfo { PartyId = party.PARTY_ID, InitiatorName = party.DUOJU_USERS.NICK_NAME, HoldDate = party.HOLD_DATE, HoldTime = party.HOLD_TIME, Description = party.DESCRIPTION, MinIntoForce = party.MIN_INTO_FORCE, MaxIntoForce = party.MAX_INTO_FORCE, Status = party.STATUS, SupplierInfo = SupplierService.GetSupplierInfoById(party.SUPPLIER_ID), PartyParticipantInfos = GetPartyParticipantInfos(partyId), PartyCommentInfos = party.STATUS == (int)PartyStatuses.CONSUMED ? PartyRepository.GetPartyCommentInfos(partyId) : null }; ConvertPartyInfo(info); return(info); } return(null); }