public async Task <IActionResult> Edit(int id, [Bind("Id,FirstName,LastName,Gender,Birth,Address,Phone,Email,Department")] Employee employee)
        {
            //int a = employee.Id;
            Employee tempEmployee = employee;

            if (id != employee.Id)
            {
                return(NotFound());
            }
            if (ModelState.IsValid)
            {
                /*
                 * try
                 * {
                 *  _context.Update(employee);
                 *  await _context.SaveChangesAsync();
                 * }
                 * catch (DbUpdateConcurrencyException)
                 * {
                 *  if (!EmployeesService.EmployeeExists(employee.Id))
                 *  {
                 *      return NotFound();
                 *  }
                 *  else
                 *  {
                 *      throw;
                 *  }
                 * }
                 */
                bool isEmpoyeExist = await EmployeesService.EditEmployeeAsync(employee);

                if (!isEmpoyeExist)
                {
                    return(NotFound());
                }
                return(RedirectToAction("Index"));
            }
            return(View(employee));
        }