예제 #1
0
        public IActionResult Participant()
        {
            ComponentHandler     comphanlder     = new ComponentHandler(new bachelordbContext());
            ComponentTypeHandler comptypehanlder = new ComponentTypeHandler(new bachelordbContext());
            CategoryHandler      category        = new CategoryHandler(new bachelordbContext());
            HomePageModel        model           = new HomePageModel();

            model.listcategory       = category.getAllCategory();
            model.listcomponenttypes = comptypehanlder.GetAlleComponentTypes();
            model.listcomponent      = comphanlder.getallComponent();
            model.CategoryComponent  = category.GetallCategoryComponentTypes();
            return(View(model));
        }