public async Task <IActionResult> Detail() { var model = new CheckFundViewModel(); model.CountUserFund = await _fundTransactionHistoryService.GetCountUserFund(0); model.TotalAmountUserFund = await _fundTransactionHistoryService.GetTotalAmountInvestFund(0); return(View(model)); }
public async Task <IActionResult> Detail(CheckFundViewModel model) { if (!ModelState.IsValid) { return(View(model)); } model.CountUserFund = await _fundTransactionHistoryService.GetCountUserFund(int.Parse(model.FundId)); model.TotalAmountUserFund = await _fundTransactionHistoryService.GetTotalAmountInvestFund(int.Parse(model.FundId)); return(View(model)); }