Example #1
0
        public TBL_CLIENTES ToTableCliente(PuntoDeVenta.Library.Entity_Classes.Cliente client)
        {
            TBL_CLIENTES cl = new TBL_CLIENTES();

            cl.CedulaCliente  = client.CedulaCliente;
            cl.Email          = client.Email;
            cl.Direccion      = client.Direccion;
            cl.NombreCompleto = client.NombreCompleto;
            cl.RNC            = client.RNC;
            return(cl);
        }
Example #2
0
 public void AddCliente(PuntoDeVenta.Library.Entity_Classes.Cliente client)
 {
     context.TBL_CLIENTES.Add(ToTableCliente(client));
     context.SaveChanges();
 }