Пример #1
0
        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);
        }
Пример #2
0
        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());
        }