public string ChangeTokenStatus(string tokencode, string name, string status, DateTime date)
    {
        string res    = "";
        bool   active = GetStatus(status);

        if (!bll.IsCurrentDate(date))
        {
            res = "You cannot change this Session transaction's state because it is an expired one";
        }
        else
        {
            string state   = "";
            int    tokenId = int.Parse(tokencode);
            string User    = HttpContext.Current.Session["Username"].ToString();
            datafile.ChangeTokenState(tokenId, active, User);
            if (active)
            {
                res   = name + " token has been enabled Successfully";
                state = "enabled";
            }
            else
            {
                res   = name + " token has been disabled Successfully";
                state = "disabled";
            }
        }
        return(res);
    }