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"; }
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"); }
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"; }
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"); }