public async Task GetDepartmentsAsync()
        {
            OperationInProgress = true;
            Departments         = await DepartmentsProvider.GetDepartmentsAsync();

            SelectedDeparment   = Departments?.FirstOrDefault();
            OperationInProgress = false;
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            if (Session["model"] == null)
            {
                DataTable table = new DataTable();
                table = DepartmentsProvider.GetDeparments();
                table.Columns.Add("SortIndex");

                Session["model"] = table;
            }
            return(View());
        }
Ejemplo n.º 3
0
        public virtual void SetUp()
        {
            unitOfWork        = new UnitOfWork(sessionFactory);
            studentsCreator   = new StudentCreator(unitOfWork, repositoriesFactory);
            studentsProvider  = new StudentsProvider(unitOfWork, repositoriesFactory);
            studentDestructor = new StudentDestructor(unitOfWork, repositoriesFactory);
            studentImporter   = new CsvStudentsImporter(studentsCreator);

            modesCreator  = new ModesCreator(unitOfWork, repositoriesFactory);
            modesProvider = new ModesProvider(unitOfWork, repositoriesFactory);

            companyCreator    = new CompanyCreator(unitOfWork, repositoriesFactory);
            companyUpdater    = new CompanyUpdater(unitOfWork, repositoriesFactory);
            companyDestructor = new CompanyDestructor(unitOfWork, repositoriesFactory);
            companiesProvider = new CompaniesProvider(unitOfWork, repositoriesFactory);

            offerCreator    = new OfferCreator(unitOfWork, repositoriesFactory);
            offerUpdater    = new OfferUpdater(unitOfWork, repositoriesFactory);
            offerDestructor = new OfferDestructor(unitOfWork, repositoriesFactory);
            offerProvider   = new OffersProvider(unitOfWork, repositoriesFactory);

            courseCreator    = new CourseCreator(unitOfWork, repositoriesFactory);
            courseProvider   = new CoursesProvider(unitOfWork, repositoriesFactory);
            courseUpdater    = new CourseUpdater(unitOfWork, repositoriesFactory, authenticationService);
            courseDestructor = new CourseDestructor(unitOfWork, repositoriesFactory);

            departmentCreator    = new DepartmentCreator(unitOfWork, repositoriesFactory);
            departmentProvider   = new DepartmentsProvider(unitOfWork, repositoriesFactory);
            departmentDestructor = new DepartmentDestructor(unitOfWork, repositoriesFactory);
            departmentUpdater    = new DepartmentUpdater(unitOfWork, repositoriesFactory);

            employeesDestructor = new EmployeeDestructor(unitOfWork, this.repositoriesFactory, this.authenticationService);
            employeesProvider   = new EmployeesProvider(unitOfWork, repositoriesFactory);
            employeeCreator     = new EmployeeCreator(unitOfWork, this.authenticationService, this.repositoriesFactory);
            employeesUpdater    = new EmployeeUpdater(unitOfWork, this.repositoriesFactory, this.authenticationService);

            templateCreator    = new TemplateCreator(unitOfWork, repositoriesFactory);
            templateDestructor = new TemplateDestructor(unitOfWork, repositoriesFactory);
            templateProvider   = new TemplatesProvider(unitOfWork, repositoriesFactory);

            offerTypeCreator  = new OfferTypeCreator(unitOfWork, repositoriesFactory);
            offerTypeProvider = new OfferTypeProvider(unitOfWork, repositoriesFactory);

            universityDetailsCreator  = new UniversityDetailsCreator(unitOfWork, repositoriesFactory);
            universityUpdater         = new UniversityDetailsUpdater(unitOfWork, repositoriesFactory);
            universityDetailsProvider = new UniversityDetailsProvider(unitOfWork, repositoriesFactory);
        }
Ejemplo n.º 4
0
 public ActionResult DataBinding(bool showServiceColumns)
 {
     Session["ShowServiceColumns"] = showServiceColumns;
     return(PartialView("DataBinding", DepartmentsProvider.GetDepartments()));
 }
 public DepartmentProviderLogicTest()
 {
     _departmentsProvider = new DepartmentsProvider();
 }
 public ActionResult TreeListPartial(bool?Expand)
 {
     ViewData["Expand"] = Expand;
     return(PartialView(DepartmentsProvider.GetDepartments()));
 }
Ejemplo n.º 7
0
 public DepartmentController(ILogger <DepartmentController> logger, DepartmentsProvider departmentsProvider)
 {
     _logger = logger;
     _departmentsProvider = departmentsProvider;
 }