示例#1
0
        /// <summary>
        /// 判断当前账号是否已报名
        /// </summary>
        /// <param name="guid">活动ID</param>
        /// <param name="EventAccount">账号名字</param>
        /// <returns></returns>
        public bool isRegist(string guid, string EventAccount)
        {
            bool result = false;
            var  solicitationRegister = GenericService.FirstOrDefault(p => p.NY_EventSolicitationID == guid && p.UserAccount == EventAccount);

            if (solicitationRegister != null)
            {
                if (solicitationRegister.UserAccount == UserInfo.Account ||
                    solicitationRegister.EventAccount == EventAccount)
                {
                    result = true;
                }
            }
            return(result);
        }