public JsonResult getPedidoDetalle(int pedd_Id) { IEnumerable <object> list = null; try { list = db.SDP_tbPedidoDetalle_Select(pedd_Id).ToList(); } catch (Exception Ex) { Ex.Message.ToString(); } return(Json(list, JsonRequestBehavior.AllowGet)); }