Ejemplo n.º 1
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());
        }
Ejemplo n.º 2
0
        public IActionResult Search(Models.OrgSearchByParameters model)
        //Currently not working due to issue with parsing JSON data
        {
            if (ModelState.IsValid)
            {
                List <FullOrgEmbed> orgs = OrgProcessor.OrgSearchByParameters(model.navn, model.fraAntallAnsatte, model.tilAntallAnsatte, model.konkurs,
                                                                              model.underTvangsavviklingEllerTvangsopplosning, model.underAvvikling, model.hjemmeside).Result;
                return(RedirectToAction("Index"));
            }

            return(View());
        }