/// <summary> /// Devuelve listado de clientes /// </summary> /// <returns></returns> public List <SYSFLEX_CUSTOMER> GetCustomer() { var contexto = new ATLANEntities(); List <SYSFLEX_CUSTOMER> customerlist; try { customerlist = contexto.usp_ST_SYSFLEX_CUSTOMER_GET_PARENTS().ToList(); return(customerlist); } catch (EntityException ex) { log.LogExeption("Ocurrió un error: ", 2, ex); throw; } catch (Exception ex) { log.LogExeption("Ocurrió un error: ", 2, ex); throw; } finally { contexto.Dispose(); } }