// GET: Emp
        public ActionResult Details(int id)
        {
            Empcontext empContext = new Empcontext();
            Emp        Emp        = empContext.Emp.Single(emp => emp.id == id);

            return(View(Emp));
        }
        // GET: Dept
        public ActionResult Dept()
        {
            Empcontext  empContext = new Empcontext();
            List <Dept> Dept       = empContext.Dept.ToList();

            return(View(Dept));
        }
        public ActionResult Index(int id)
        {
            Empcontext empContext = new Empcontext();
            List <Emp> Emp        = empContext.Emp.Where(emp => emp.DeptId == id).ToList();

            return(View(Emp));
        }