Beispiel #1
0
        public void ActualizarIapd(ipad tablet)
        {
            var resultado = context.ipad.FirstOrDefault(x => x.id == tablet.id);

            resultado.versionso   = tablet.versionso;
            resultado.descripcion = tablet.descripcion;
            resultado.estado      = tablet.estado;
            context.SaveChanges();
        }
Beispiel #2
0
        private void btnRegIpad_Click(object sender, EventArgs e)
        {
            var ipads = new ipad();

            ipads.codigo      = txtCodigoIpad.Text;
            ipads.modelo      = txtModeloIpad.Text;
            ipads.serial      = txtSerialIpad.Text;
            ipads.versionso   = txtVersioIpad.Text;
            ipads.descripcion = txtDescription.Text;
            ipads.estado      = cbEstadoIpad.Text;
            ipads.sede_id     = Convert.ToInt32(cmbSede.SelectedValue);

            ipadService.RegistrarIpad(ipads);
            LlenarIpads();
        }
Beispiel #3
0
 public void RegistrarIpad(ipad tablet)
 {
     repositoryIpad.RegistrarIpad(tablet);
 }
Beispiel #4
0
 public void ActualizarIapd(ipad tablet)
 {
     repositoryIpad.ActualizarIapd(tablet);
 }
Beispiel #5
0
 public void RegistrarIpad(ipad tablet)
 {
     context.ipad.Add(tablet);
     context.SaveChanges();
 }