public async Task <IActionResult> _ReportMain(int surveyId, int categoryId)
        {
            var model = new ReportMainViewModel();

            model.Item = await service.ReportMain(surveyId, categoryId);

            return(PartialView(model));
        }
        public async Task <IActionResult> ReportMain()
        {
            var model  = new ReportMainViewModel();
            var userId = GetUserId();

            model.Categorys = await service.GetCategorys(userId);

            model.Surveys = await service.GetBy(userId, null, null);

            return(View(model));
        }
 private void Page_Loaded(object sender, RoutedEventArgs e)
 {
     this.reportVM = new ReportMainViewModel(
         this.reportRepository,
         this.orderRepository,
         this.customerRepository,
         this.tourRepository,
         this.tourguideRepository,
         this.languageRepository,
         this.onHolidayRepository,
         this.programRepository,
         this.placeRepository,
         this.pltconRepository,
         this.prtconRepository);
     this.DataContext = this.reportVM;
 }