public Response <IEnumerable <WMSConfig> > GetWMSConfig() { Response <IEnumerable <WMSConfig> > response = new Response <IEnumerable <WMSConfig> >(); try { ConfigAccessor accessor = new ConfigAccessor(); response.Result = accessor.GetWMSConfig(); response.IsSuccess = true; } catch (Exception ex) { LogError(ex); response.IsSuccess = false; response.ErrorCode = ErrorCode.Technical; } return(response); }