Esempio n. 1
0
 public ChallanController()
 {
     customerDAL = new CustomerDAL();
     categoryDAL = new CategoryDAL();
     taxDAL      = new TaxDAL();
     challanDAL  = new ChallanDAL();
 }
        /// <summary>
        /// This method is used to get tax by id
        /// </summary>
        /// <param name="taxId"></param>
        /// <returns></returns>
        public List <TaxModel> GetTax(int taxId)
        {
            ITaxDAL         taxDAL = new TaxDAL();
            List <TaxModel> tax    = taxDAL.GetTax(taxId);

            foreach (var e in tax)
            {
                decimal s  = 0;
                bool    ok = Decimal.TryParse(e.StrTaxRate.Replace("%", "").Trim(), out s);
                e.TaxRate = s;
            }

            return(tax);
        }
Esempio n. 3
0
 public TaxBLL(DBHelper _dbHelper)
     : base(_dbHelper)
 {
     taxDAL = new TaxDAL(_dbHelper);
 }