public ActionResult EliminarProducto(int id, FormCollection collection)
        {
            try
            {
                //Elimina el pedido
                _pedidosDAO.Eliminar(id);

                return(RedirectToAction("Index"));
            }
            catch
            {
                //Hacer patanalla de error
                return(View());
            }
        }
 public void EliminarPedido(string id)
 {
     pdao.Eliminar(Convert.ToInt32(id));
 }