public async Task <IActionResult> Edit(int id)
        {
            var attend = await _repository.GetAttend(id);

            if (attend == null)
            {
                ViewBag.ErrorMessage = "لايوجد   بيانات";
                return(View("NotFound"));
            }
            var employeeAttendCMV = _mapper.Map <EmployeeAttendCMV>(attend);

            ViewData["TheWork"]    = new SelectList(TheWorName(), "ThWork", "ThWork", attend.TheWork);
            ViewData["EmployeeId"] = new SelectList(await _repository.GetEmployeeContractActive(), "Id", "Name", attend.EmployeeId);
            return(View(employeeAttendCMV));
        }