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