DigipostClientLibWebapp.Controllers.IdentifyController.IdentifyByNameAndAddress C# (CSharp) Method

IdentifyByNameAndAddress() public method

public IdentifyByNameAndAddress ( IdentifyModel identifyModel ) : Task
identifyModel DigipostClientLibWebapp.Models.IdentifyModel
return Task
        public async Task<ActionResult> IdentifyByNameAndAddress(IdentifyModel identifyModel)
        {
            var identification = new Identification(new RecipientByNameAndAddress(identifyModel.FullName, identifyModel.AddressLine1, identifyModel.PostalCode, identifyModel.City));
            
            var result = await _digipostService.Identify(identification);
            
            return PartialView("IdentificationResult", result);
        }
    }