public async Task <IActionResult> GetNEWSSettings() { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var globalSetting = await _globalSettingsService.GetNEWSSettings(); if (globalSetting == null) { return(NotFound()); } return(Ok(globalSetting)); }
async Task GuidanceDocument() { await HandleAPICall(async() => { var newsSettings = await _globalSettingsService.GetNEWSSettings(_settingsService.AuthAccessToken); if (!string.IsNullOrEmpty(newsSettings.GuidanceDocumentURL)) { await Browser.OpenAsync(newsSettings.GuidanceDocumentURL, BrowserLaunchMode.SystemPreferred); } else { await _pageDialogService.DisplayAlertAsync("Alert", "Guidance Document has not be set-up.", "OK"); } }, HandleMode.RetryCancel); }