public IActionResult AllDepartments()
        {
            AllDepartmentsViewModel model = new AllDepartmentsViewModel();

            model.Departments = entityRepository.GetAll().Include(d => d.Faculty);
            GetAllFaculties(model);
            return(View(model));
        }
        // GET: /<controller>/
        public async Task <IActionResult> Index()
        {
            var model = new AllDepartmentsViewModel();

            model.Departments = await context.Department.ToListAsync();

            return(View(model));
        }