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