public Ticket()
 {
     setModo(EnumModoTicket.Modo58mm);
     Negocio   = new DatosNegocio();
     Cliente   = new DatosCliente();
     Documento = new DatosDocumento();
 }
Beispiel #2
0
        public void Put(int id, [FromBody] DatosNegocio newObj)
        {
            var oldObj = db.DatosNegocio.Find(id);

            if (oldObj == null)
            {
                return;
            }
            newObj.Id = oldObj.Id;
            db.Entry(oldObj).CurrentValues.SetValues(newObj);
            db.SaveChanges();
        }
Beispiel #3
0
 public Ticket()
 {
     Negocio   = new DatosNegocio();
     Cliente   = new DatosCliente();
     Documento = new DatosDocumento();
 }
Beispiel #4
0
 public void Post(DatosNegocio sync)
 {
     db.DatosNegocio.Add(sync);
     db.SaveChanges();
 }