Exemple #1
0
 public PuntoDeVenta.Library.Entity_Classes.Cliente GetClienteByName(string name)
 {
     PuntoDeVenta.Library.Entity_Classes.Cliente cl = new Entity_Classes.Cliente();
     if (name != "")
     {
         cl = ToModelCleinte(context.TBL_CLIENTES.SingleOrDefault(x => x.NombreCompleto == name));
     }
     return(cl);
 }
Exemple #2
0
        public PuntoDeVenta.Library.Entity_Classes.Cliente ToModelCleinte(TBL_CLIENTES client)
        {
            PuntoDeVenta.Library.Entity_Classes.Cliente cl = new Entity_Classes.Cliente();
            cl.CedulaCliente = client.CedulaCliente;
            cl.Email         = client.Email;
            cl.Direccion     = client.Direccion;

            cl.NombreCompleto = client.NombreCompleto;
            cl.RNC            = client.RNC;
            return(cl);
        }