Пример #1
0
        public bool CheckUserToken(string token, string deviceId)
        {
            var bll   = new BLL.UserToken();
            var model = bll.GetModelList("Token='" + token)[0];

            return(model.OverdueTime > DateTime.Now && model.DeviceId == deviceId);
        }
Пример #2
0
        public bool OverdueUserToken(string token)
        {
            var bll   = new BLL.UserToken();
            var model = bll.GetModelList("Token='" + token)[0];

            model.IsOverdue = 1;
            try
            {
                return(bll.Update(model));
            }
            catch (Exception)
            {
                throw;
            }
        }