public int ConsultarEwoDuracionTotal(int id) { int duracion = 0; ewosDataTable edt = null; edt = eta.GetDataById(id); if (edt.Rows.Count > 0) { duracion = int.Parse(edt.Rows[0]["tiempo_total"].ToString()); } return(duracion); }
public Ewo ConsultarEwoById(int id) { Ewo e = new Ewo(); ewosDataTable edt = null; edt = eta.GetDataById(id); if (edt.Rows.Count > 0) { e.id = int.Parse(edt.Rows[0]["Id"].ToString()); e.tiempo_total = int.Parse(edt.Rows[0]["tiempo_total"].ToString()); } return(e); }