示例#1
0
        public string Action(string alias, int pageId)
        {
            var comment = HttpContext.Current.Request["comment"] + "";

            var currentMemberId = Members.GetCurrentMember().Id;
            if (currentMemberId > 0)
            {
                var action = new BusinessLogic.Action(alias);
                return action.Perform(currentMemberId, pageId, comment).ToString();
            }

            return "notLoggedIn";
        }
示例#2
0
        public string Action(string alias, int pageId)
        {
            var comment = HttpContext.Current.Request["comment"] + "";

            var currentMemberId = Members.GetCurrentMember().Id;

            if (currentMemberId > 0)
            {
                var action = new BusinessLogic.Action(alias);
                return(action.Perform(currentMemberId, pageId, comment).ToString());
            }

            return("notLoggedIn");
        }
示例#3
0
        public static string Action(string alias, int pageID)
        {
            int _currentMember = HttpContext.Current.User.Identity.IsAuthenticated ? (int)Membership.GetUser().ProviderUserKey : 0;
            string comment = HttpContext.Current.Request["comment"] + "";

            if (_currentMember > 0) {
                BusinessLogic.Action a = new BusinessLogic.Action(alias);
                if (a != null) {
                    return a.Perform(_currentMember, pageID, comment).ToString();
                } else {
                    return "noAction";
                }
            }

            return "notLoggedIn";
        }
示例#4
0
        public static string Action(string alias, int pageID)
        {
            int    _currentMember = HttpContext.Current.User.Identity.IsAuthenticated ? (int)Membership.GetUser().ProviderUserKey : 0;
            string comment        = HttpContext.Current.Request["comment"] + "";

            if (_currentMember > 0)
            {
                BusinessLogic.Action a = new BusinessLogic.Action(alias);
                if (a != null)
                {
                    return(a.Perform(_currentMember, pageID, comment).ToString());
                }
                else
                {
                    return("noAction");
                }
            }

            return("notLoggedIn");
        }