public async Task <IActionResult> Create() { var legalpersons = await _legalpersonService.FindAllAsync(); var saleschannels = await _saleschannelService.FindAllAsync(); var plans = await _planService.FindAllAsync(); var shippingways = await _shippingwayService.FindAllAsync(); var viewModel = new CollaboratorFormViewModel { Legalpersons = legalpersons, Saleschannels = saleschannels, Plans = plans, Shippingways = shippingways }; return(View(viewModel)); }
public async Task <IActionResult> Index() { return(View(await _SaleschannelService.FindAllAsync())); }