public List <Cliente> GetAllClientes() { List <Cliente> retList = new List <Cliente>(); var a = _clienteServices.GetAllClientes(); foreach (var i in a) { retList.Add(new Cliente() { ID = i.code, Nombre = i.Nombre, Apellido = i.Apellido, CUIT = i.CUIT, Sex = (i.Sexo == "M") ? true : false, SexDescription = (i.Sexo == "M") ? "Masculino" : "Femenino", FechaNac = i.FechaNac.Date, ClientType = _clienteServices.GetPriceListByClient(i.code), ClientTypeDescripcion = _clienteServices.GetPriceDescriptionListByClient(i.code) }); } return(retList); }