Beispiel #1
0
        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();
        }
Beispiel #2
0
 public bool Update(ProgramaDTO programa)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
        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));
 }