public ActionResult Add(AddVM vm) { _deptService = new DepartmentService(_empDeptDBContext); _deptService.AddDepartemnt(new Department { DName = vm.DName, Location = vm.Location, Description = vm.Description }); return(RedirectToAction("Index", "Department")); }