Esempio n. 1
0
        public async Task <IActionResult> Edit(int id)
        {
            var response = await _service.Get(id, _appSetings.RestApiUrl);

            if (!response.Success)
            {
                return(View("NotFound"));
            }
            var employeeResource = _converter.ConvertFromModel(response.Employee);

            return(View(employeeResource));
        }