public List<String> RetrieveEmployeesName()
{
try
{
var query = from e in entities.empleados select e;
List<string> nomemp = new List<string>();
foreach (empleado emp in query)
nomemp.Add(emp.nombres);
return nomemp;
}
catch (Exception err)
{
throw new Exception(err.ToString() + "--Empleados.cs / RetrieveEmployeesName()");
}
}