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); }
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); }