public UserData GetLastSelectedDomain() { try { string data = FileAdapter.ReadUserData(); UserData userData = string.IsNullOrWhiteSpace(data) ? null : ObjectSerializeHelper.Deserialize <UserData>(data); return(userData); } catch (BaseException srvExp) { Services.ServiceException newSrvExp = new Services.ServiceException(ErrorCode.ipe_LoadResourceError); newSrvExp.Errors.Add(srvExp); throw newSrvExp; } catch (Exception ex) { ServiceException srvExp = new ServiceException(Core.ErrorCode.ipe_LoadResourceError, Core.MessageUtils.Expand(Properties.Resources.ipe_LoadResourceError, ex.Message), ex.StackTrace); throw srvExp; } }