public static async Task <FullOrg> GetOrgByOrgNo(int orgNo) //Currently not working due to issue with parsing JSON data { string APIResponseString = await ApiEnhetsregister.LoadOrgByOrgNo(orgNo); FullOrg org = JsonConvert.DeserializeObject <FullOrg>(APIResponseString); return(org); }
public IActionResult HentOrganisasjonsData(Models.OrgSearchByOrgNumber model) //Currently not working due to issue with parsing JSON data { if (ModelState.IsValid) { FullOrg org = new FullOrg(); org = OrgProcessor.GetOrgByOrgNo(model.organisasjonsnummer).Result; int i = 1; } return(View()); }