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)); }
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)); }
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)); }