public async Task <IActionResult> ByIdAndDate(int id, string date) { var dto = new QueriesToPassDto() { SqlFunctionById = SqlFunctionDictionary.ByIdFund, SqlFunctionActiveSE = SqlFunctionDictionary.FundActiveSubFunds, SqlFunctionDistinctDocuments = SqlFunctionDictionary.DistinctDocumentsFund, SqlFunctionDistinctAgreements = SqlFunctionDictionary.DistinctAgreementsFund, }; var viewModel = await SpecificVMSetup.SetGet <SpecificEntityViewModel>(id, date, this.service, this.fundService, dto); return(this.View(viewModel)); }
public async Task <IActionResult> ByIdAndDate(int id, string date) { var dto = new QueriesToPassDto() { SqlFunctionById = SqlFunctionDictionary.ByIdShareClass, SqlFunctionDistinctDocuments = SqlFunctionDictionary.DistinctDocumentsShareClass, SqlFunctionDistinctAgreements = SqlFunctionDictionary.DistinctAgreementsShareClass, SqlFunctionContainer = SqlFunctionDictionary.ContainerSubFund, }; var viewModel = await SpecificVMSetup.SetGet <SpecificEntityViewModel>(id, date, this.service, this.shareClassService, dto); await this.recentService.Save(this.User, this.Request.Path); return(this.View(viewModel)); }