using System; using System.Collections.Generic; using Utils; using WNS.Entities; using Entities; namespace WNS.DAO { public static class NameService { public static IEnumerable GetMapServices() { List result = new List(); #if !Debug try { #endif using (var ctx = new WMSNSEntities()) { result.AddRange(ctx.WebMapServices); } #if !Debug } catch (Exception ex) { Logger.Log("WNS.DAO", ex); } #endif return result; } } }