public ActionResult Add(DepartmentViewModel model)
 {
     if (!ModelState.IsValid)
     {
         return View();
     }
     var department = new Department();
     department.Name = model.Name;
     department.Floor = model.Floor;
     db.Departments.Add(department);
     db.SaveChanges();
     return RedirectToAction("Index", "Employees");
 }
 public ActionResult Add()
 {
     var model = new DepartmentViewModel();
     return View(model);
 }