public async Task <IActionResult> Create() { CreateInsurenceClaimViewModel viewModel = new CreateInsurenceClaimViewModel(); viewModel.Insurences = await _movtechAPIService.GetAllInsurences(); return(View(viewModel)); }
public async Task <IActionResult> Index() { IEnumerable <Insurence> insurences = await _movtechAPIService.GetAllInsurences(); return(View(insurences)); }