Beispiel #1
0
        public async Task <IActionResult> Edit(int id)
        {
            var leaveType = await _service.FindById(id);

            if (!leaveType.HasValue())
            {
                return(NotFound());
            }

            var model = LeaveTypeDto.CreateFrom(leaveType);

            return(View(model));
        }