public static string Editar(int id, string nombre, double precio1, double precio2, bool titulo, int labRef, int precioRef, DataTable DtDetalles) { DPerfil Objeto = new DPerfil(); Objeto.ID = id; Objeto.Nombre = nombre; Objeto.Precio1 = precio1; Objeto.Precio2 = precio2; Objeto.Titulo = titulo; Objeto.LabRef = labRef; Objeto.PrecioRef = precioRef; List <DDetalle_Perfil> Detalles = new List <DDetalle_Perfil>(); foreach (DataRow row in DtDetalles.Rows) { DDetalle_Perfil Detalle = new DDetalle_Perfil(); //voy a poner que se agregue el id mientras tanto Detalle.IDExamen = Convert.ToInt32(row["IDExamen"].ToString()); Detalles.Add(Detalle); } return(Objeto.Editar(Objeto, Detalles)); }
public static List <DDetalle_Perfil> MostrarDetalle(int TextoBuscar) { DDetalle_Perfil Objeto = new DDetalle_Perfil(); return(Objeto.MostrarDetalle(TextoBuscar)); }