public DataLayerResult DoResponse(IDataLayer dataLayer, Object response) { dataLayer.RoleInfoList.Clear(); GetAllRoleInfoResponse res = (GetAllRoleInfoResponse)response; if (res.allRole != null) { RoleInfo[] roleInfoArray = res.allRole; for (int i = 0; i < roleInfoArray.Length; i++) { dataLayer.RoleInfoList.Add(roleInfoArray[i].roleId, roleInfoArray[i]); } } return(DataLayerResult.Success); }
public DataLayerResult GetAllRoleInfo() { GetAllRoleInfoRequest req = new GetAllRoleInfoRequest(); GetAllRoleInfoResponse res = null; try { res = m_WsSysguard.GetAllRoleInfo(req); connStateManager.Connection(); return(stateProcessor.MakeDataLayerResult <GetAllRoleInfoResponse>(this, res)); } catch (Exception ex) { return(HandleException(ex)); } }