public string CheckTokenExpired(BS_Partners partners)
        {
            if (partners.LastModife == null)
            {
                return(SendLogin(partners.UserLogin, partners.PassLogin, "42422"));
            }

            var days = DateTime.Now.Subtract(partners.LastModife.Value).TotalDays;

            if (days >= partners.Expired)
            {
                return(SendLogin(partners.UserLogin, partners.PassLogin, "42422"));
            }

            return(partners.TokenLogin);
        }
 public SendViettelHandle(MNPOSTEntities db, BS_Partners partner, MNHistory HandleHistory)
 {
     this.db            = db;
     this.partner       = partner;
     this.HandleHistory = HandleHistory;
 }