public ActionResult AddEmployee(AddEmployeViewModel model)
        {
            if (ModelState.IsValid)
            {
                Employee e = new Employee()
                {
                    Departman   = departmentManager.Find(x => x.DepartmentId == model.DepartmentId),
                    Director    = employeeManager.Find(x => x.EmployeeID == model.DirectorId),
                    Name        = model.Name,
                    Surname     = model.Surname,
                    PhoneNumber = model.PhoneNumber
                };


                if (employeeManager.Insert(e) > 0)
                {
                    OkViewModel ntfobj = new OkViewModel()
                    {
                        Title              = "Registration Successful",
                        RedirectingUrl     = "/Home/ListEmployee",
                        RedirectingTimeout = 1000
                    };
                    ntfobj.Items.Add("Employee registration was successful..");
                    return(View("Ok", ntfobj));
                }
            }
            ViewBag.DepartmentId = new SelectList(departmentManager.List(), "DepartmentId", "Title", model.DepartmentId);
            if (model.DirectorId != null)
            {
                ViewBag.EmployeeID = new SelectList(employeeManager.List(), "EmployeeID", "Name", model.DirectorId);
            }
            else
            {
                ViewBag.EmployeeID = new SelectList(employeeManager.List(), "EmployeeID", "Name", "- None -");
            }

            return(RedirectToAction("ListEmployee"));
        }