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

            if (serviceprovider == null)
            {
                return(NotFound());
            }
            List <Typeservice>           typeservices = _typeserviceService.FindAll();
            ServiceproviderFormViewModel viewModel    = new ServiceproviderFormViewModel
            {
                Serviceprovider = serviceprovider,
                Typeservices    = typeservices,
            };

            return(View(viewModel));
        }
예제 #2
0
        public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            var partner = await _partnerService.FindByIdAsync(id.Value);

            if (partner == null)
            {
                return(NotFound());
            }
            List <Typeservice>   typeservices = _typeserviceService.FindAll();
            PartnerFormViewModel viewModel    = new PartnerFormViewModel
            {
                Partner     = partner,
                Typeservice = typeservices
            };

            return(View(viewModel));
        }
예제 #3
0
        public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            var legalpersons = await _legalpersonService.FindByIdAsync(id.Value);

            if (legalpersons == null)
            {
                return(NotFound());
            }
            List <Typeservice>       typeservices = _typeserviceService.FindAll();
            LegalpersonFormViewModel viewModel    = new LegalpersonFormViewModel
            {
                Legalperson  = legalpersons,
                Typeservices = typeservices,
            };

            return(View(viewModel));
        }