コード例 #1
0
        private int GetCurrentCommunity(dtoBaseForPaper call)
        {
            int idCommunity = ServiceCall.GetCallIdCommunityContext(call);

            //Community currentCommunity = CurrentManager.GetCommunity(this.UserContext.CurrentCommunityID);
            //Community community = null;
            //if (call != null)
            //    idCommunity = (call.IsPortal) ? 0 : (call.Community != null) ? call.Community.Id : 0;
            //community = CurrentManager.GetCommunity(idCommunity);

            //if (community == null && currentCommunity != null && !call.IsPortal)
            //    idCommunity = this.UserContext.CurrentCommunityID;
            //else if (community==null)
            //    idCommunity = 0;
            View.IdCallCommunity = idCommunity;
            return(idCommunity);
        }