Example #1
0
        public async Task <IActionResult> Update(long?id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            var result = await _educationService.GetEducationEmployeeAsync(id.Value);

            if (result.IsValid)
            {
                await FillingDropDownListsEducation();

                return(View(_mapper.Map <EducationViewModel>(result.Result)));
            }
            return(_oops.OutPutError("Employee", "Index", result.ErrorsList));
        }