public ActionResult FreeStock() { MasterReportBound report = GetFreeStock(new FreeStockFilterViewModel()); UserProfile user = _userProfileService.GetUser(User.Identity.Name); var codes = ConstantsService.GetAllCodes(); var commodityTypes = _commodityTypeService.GetAllCommodityTypeForReprot(); var programs = _programService.GetAllProgramsForReport(); var commodities = _commodityService.GetAllCommodityForReprot(); var areas = _adminUnitService.GetAllAreasForReport(); FreeStockFilterViewModel ViewModel = new FreeStockFilterViewModel(codes, commodityTypes, programs, commodities, areas); ViewBag.Filters = ViewModel; return(View(report)); }
/// <summary> /// /// </summary> /// <returns></returns> public ActionResult Dispatches() { var user = _userProfileService.GetUser(User.Identity.Name); var codesViewModels = ConstantsService.GetAllCodes(); var commodityTypeViewModels = _commodityTypeService.GetAllCommodityTypeForReprot(); var programViewModels = _programService.GetAllProgramsForReport(); var storeViewModels = _hubService.GetAllStoreByUser(user); var areaViewModels = _adminUnitService.GetAllAreasForReport(); var bidRefViewModels = _dispatchAllocationService.GetAllBidRefsForReport(); var viewModel = new DispatchesViewModel(codesViewModels, commodityTypeViewModels, programViewModels, storeViewModels, areaViewModels, bidRefViewModels); return(View(viewModel)); }