public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            var physicalperson = await _physicalpersonService.FindByIdAsync(id.Value);

            if (physicalperson == null)
            {
                return(NotFound());
            }
            List <Shippingway>          shippingways  = _shippingwayService.FindAll();
            List <Saleschannel>         saleschannels = _saleschannelService.FindAll();
            List <Plan>                 plans         = _planService.FindAll();
            PhysicalpersonFormViewModel viewModel     = new PhysicalpersonFormViewModel
            {
                Physicalperson = physicalperson,
                Shippingways   = shippingways,
                Saleschannels  = saleschannels,
                Plans          = plans
            };

            return(View(viewModel));
        }
        public async Task <IActionResult> Create()
        {
            var saleschannels = await _saleschannelService.FindAllAsync();

            var plans = await _planService.FindAllAsync();

            var shippingways = await _shippingwayService.FindAllAsync();

            var viewModel = new PhysicalpersonFormViewModel
            {
                Saleschannels = saleschannels,
                Plans         = plans,
                Shippingways  = shippingways
            };

            return(View(viewModel));
        }