public async Task <IActionResult> Edit(GetEmployeeInput input)
        {
            var result = await _employeeAppService.GetAsync(input);

            var nationalities = await _lookupAppService.GetNationalities();

            var currencies = await _lookupAppService.GetCurrencies();

            var countryCodes = await _lookupAppService.GetCountryCodes();

            return(View(new EditEmployeeViewModel
            {
                LookUpInfo = new LookupInfo
                {
                    Nationalities = nationalities,
                    CountryCodes = countryCodes,
                    Currencies = currencies
                },
                Employee = result
            }));
        }
Beispiel #2
0
 public virtual async Task <EmployeeDetailDto> GetAsync(Guid id)
 {
     return(await _employeeAppService.GetAsync(id));
 }