Esempio n. 1
0
        public ActionResult Delete(int id, FormCollection collection)
        {
            try
            {
                proveedorDao.suprimirProveedor(id);

                return(RedirectToAction("Index"));
            }
            catch (MySqlException ex)
            {
                return(RedirectToAction("Error", "Proveedor"));
            }
        }