public ActionResult Editar(DTOinstrumento dto) { GestorDatos.GestorDatos gestor = new GestorDatos.GestorDatos(); gestor.actualizarinstrumento(dto.I); List <Instrumento> lista = gestor.listadeinstrumentos(); return(View("Listado", lista)); }
// GET: Instrumentos public ActionResult Alta() { GestorDatos.GestorDatos gestor = new GestorDatos.GestorDatos(); DTOinstrumento dto = new DTOinstrumento(); List <Tipo> listado = gestor.listadetipos();; dto.Listatipos = listado; return(View(dto)); }
public ActionResult Editar(int idinstrumento) { GestorDatos.GestorDatos gestor = new GestorDatos.GestorDatos(); Instrumento i = gestor.buscarinstrumento(idinstrumento); DTOinstrumento dto = new DTOinstrumento(); dto.I = i; dto.Listatipos = gestor.listadetipos(); return(View(dto)); }