Ejemplo n.º 1
0
        public ActionResult Eliminar(Producto producto)
        {
            try
            {
                if (ObjProducto.EliminaProducto(producto.IdProducto))
                {
                    return(RedirectToAction("IndexProductos", "Home", new { idEmp = Session["Empresa"] }));
                }
                else
                {
                    return(View(producto));
                }
            }
            catch (Exception)
            {
                return(View(producto));

                throw;
            }
        }