public IActionResult Insert() { InformationContentCRUDModel informationContentCRUDModel = new InformationContentCRUDModel(); categoryProvider = new CategoryProvider(); InfrastructureModel <List <Category> > infrastructerCategoryList = categoryProvider.GetCategoryList(SessionExtension.GetSessionUserTokeyKey(HttpContext.Session)); informationContentCRUDModel.CategoryList = new SelectList(infrastructerCategoryList.ResultModel, "CategoryId", "Name"); return(View(informationContentCRUDModel)); }
public IActionResult Index() { informationContentProvider = new InformationContentProvider(); InfrastructureModel <List <InformationContentSingleDataModel> > infrastructureModelList = informationContentProvider.GetListInformationContent(SessionExtension.GetSessionUserTokeyKey(HttpContext.Session)); return(View(infrastructureModelList)); }