protected void btneditar_Click(object sender, EventArgs e) { GridViewRow currentRow = (GridViewRow)((Button)sender).Parent.Parent; Int32 codigodeprograma = Convert.ToInt32(gvlistadoprogramas.Rows[currentRow.RowIndex].Cells[0].Text); ProgramaDTO objProgramaDTO = new ProgramaDTO(); objProgramaDTO = objProgramaControlador.ConsultarPrograma(codigodeprograma, oConexion.sConexion()); lblvalorcodigo.Text = objProgramaDTO.pro_id.ToString(); txtnomprograma.Text = objProgramaDTO.pro_nom; ddlfacultad.SelectedValue = objProgramaDTO.fac_id.ToString(); }
public bool Update(ProgramaDTO programa) { throw new NotImplementedException(); }
public GenericResult <ProgramaDTO> Create(ProgramaDTO programa) { var result = service.Create(programa.MapTo <Programa>()); return(result.MapTo <GenericResult <ProgramaDTO> >()); }
public bool Put(int id, [FromBody] ProgramaDTO programa) { return(appService.Update(programa)); }
public GenericResult <ProgramaDTO> Post([FromBody] ProgramaDTO programa) { return(appService.Create(programa)); }