Пример #1
0
		public static bool UpdatePrizeRecord(int activityId, int userId, string realName, string cellPhone)
		{
			PrizeRecordDao prizeRecordDao = new PrizeRecordDao();
			PrizeRecordInfo userPrizeRecord = prizeRecordDao.GetUserPrizeRecord(activityId, HiContext.Current.UserId);
			userPrizeRecord.UserID = userId;
			userPrizeRecord.RealName = realName;
			userPrizeRecord.CellPhone = cellPhone;
			return prizeRecordDao.UpdatePrizeRecord(userPrizeRecord);
		}
Пример #2
0
        public static bool UpdatePrizeRecord(int activityId, int userId, string realName, string cellPhone)
        {
            PrizeRecordDao  dao             = new PrizeRecordDao();
            PrizeRecordInfo userPrizeRecord = dao.GetUserPrizeRecord(activityId);

            if (userPrizeRecord == null)
            {
                return(false);
            }
            userPrizeRecord.UserID    = userId;
            userPrizeRecord.RealName  = realName;
            userPrizeRecord.CellPhone = cellPhone;
            return(dao.UpdatePrizeRecord(userPrizeRecord));
        }