public DataTable GetCardInfo_BLL(string username) { try { DataTable dt = SDBA.UserCardInfo(username); this.CardName = (string)dt.Rows[0]["cardname"]; this.CardNumber = (long)dt.Rows[0]["cardnumber"]; this.CardValidity = (DateTime)dt.Rows[0]["validity"]; this.ActivationStatus = (bool)dt.Rows[0]["activationstatus"]; this.CreditLimit = (decimal)dt.Rows[0]["creditlimit"]; this.CreditBalance = (decimal)dt.Rows[0]["creditbalance"]; return(dt); } catch (Exception) { throw; } }