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); }
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); }