示例#1
0
        public async Task <User> LoadLoginInfo(AppSettings appSettings)
        {
            var loginInfo = await HttpService.GetAsync <LoginInfo>($"{appSettings?.Api}/api/security/loadlogininfo");

            AppSettingsService.Set(MyAppConstants.CurrentUser, loginInfo.User);

            return(loginInfo.User);
        }
示例#2
0
        public async Task <SystemSettings> GetSystemSettings()
        {
            var appSettings = AppSettings;

            var systemSettings = await HttpService.GetAsync <SystemSettings>($"{appSettings?.Api}/api/portal/getportalsettings", null, false);

            AppSettingsService.Set(MyAppConstants.SystemSettings, systemSettings);

            return(systemSettings);
        }