public ActionResult Create(Department Departments)
        {
            DAl.Irepository <Department> s = new department_manager();

            s.add(Departments);
            return(View());
        }
        public ActionResult Delete(Department Departments)
        {
            DAl.Irepository <Department> s = new department_manager();

            s.delete(Departments);

            return(RedirectToAction("Index"));
        }
        // GET: Department_

        public ActionResult Index(string text)
        {
            DAl.Irepository <Department> s = new department_manager();
            var z = s.select();

            if (!string.IsNullOrEmpty(text))
            {
                z = from item in z
                    where (item.name.Contains(text))
                    select item;
            }
            return(View(z));
        }