// // GET: /Department/Create public ActionResult Create() { var faculties = _repo.Faculties.All; var department = new Department(); var vm = new DepartmentInputModel(department, faculties); return View(vm); }
// // GET: /Department/Delete/5 public ActionResult Delete(int id) { var faculties = _repo.Faculties.All; var department = _repo.Departments.All.Single(d => d.Id == id); var vm = new DepartmentInputModel(department, faculties); return View(vm); }