예제 #1
0
        public ActionResult _AssetSummary()
        {
            AssetSummaryViewModel model = new AssetSummaryViewModel();
            string username             = UserQueries.GetCurrentUsername();

            model.RealEstates  = RealEstateQueries.GetRealEstateSummaryByUser(username);
            model.Businesses   = BusinessQueries.GetBusinessSummaryByUser(username);
            model.BankDeposits = BankDepositQueries.GetBankDepositSummaryByUser(username);
            model.Stocks       = StockQueries.GetStockSummaryByUser(username);
            model.Insurances   = InsuranceQueries.GetInsuranceSummaryByUser(username);
            model.OtherAssets  = OtherAssetQueries.GetOtherAssetSummaryByUser(username);
            return(PartialView(model));
        }
예제 #2
0
 public HomeViewModel(AssetSummaryViewModel assetSummaryViewModel)
 {
     AssetSummaryViewModel = assetSummaryViewModel;
 }
예제 #3
0
 public HomeViewModel(AssetSummaryViewModel assetSummaryViewModel, MajorIndexListingViewModel majorIndexListingViewModel)
 {
     AssetSummaryViewModel      = assetSummaryViewModel;
     MajorIndexListingViewModel = majorIndexListingViewModel;
 }
예제 #4
0
 public HomeViewModel(MajorIndexListingViewModel majorIndexListingViewModel, AssetSummaryViewModel assetSummaryViewModel)
 {
     MajorIndexListingViewModel = majorIndexListingViewModel;
     AssetSummaryViewModel      = assetSummaryViewModel;
 }