Ejemplo n.º 1
0
        // AJAX POPUP: Employees
        public IActionResult AddEmployee()
        {
            var model = new Employee {
            };

            ViewBag.Department = new SelectList(_context.Set <Department>(), "DepartmentId", "Name");

            return(PartialView("Partial", model));
        }
        // AJAX POPUP: Departments
        public IActionResult AddDepartment()
        {
            var model = new Department {
            };

            ViewBag.Building = new SelectList(_context.Set <Building>(), "BuildingId", "Name");

            return(PartialView("Partial", model));
        }