public ActionResult Create(FormCollection collection)
        {
            try
            {
                int codeAdd = Convert.ToInt32(collection["Code"]);
                decimal tauxAdd = Convert.ToDecimal(collection["Taux"]);
                Tva AddTva = new Tva() {Code = codeAdd, Taux = tauxAdd};
                GestionnaireGererTva GesTva = new GestionnaireGererTva();
                GesTva.CreerTva(AddTva);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
Exemplo n.º 2
0
 public void MettreAJourTva(Tva t)
 {
     tvaMgr.MettreAJourTva(t);
 }
Exemplo n.º 3
0
 public void CreerTva(Tva t)
 {
     tvaMgr.CreerTva(t);
 }
        public ActionResult Edit(int id, FormCollection collection)
        {
            try
            {
                int codeEdit = Convert.ToInt32(collection["Code"]);
                decimal tauxedit = Convert.ToDecimal(collection["Taux"]);
                Tva EditTva = new Tva() { Code = codeEdit, Taux = tauxedit };
                GestionnaireGererTva GesTva = new GestionnaireGererTva();
                GesTva.MettreAJourTva(EditTva);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
Exemplo n.º 5
0
 public void MettreAJourTva(Tva t)
 {
     tvaDao.Update(t);
 }
Exemplo n.º 6
0
 public void CreerTva(Tva t)
 {
     tvaDao.Insert(t);
 }