Hi Team
I need some help, want to pass some parameters using List<>(). Here is my sample code.
- // controller
- public IList
GetExtractionViewModels( int Week, string Year) // arguments - {
- }
- // Model properties
- public string Year { get; set; }
- public int Week { get; set; }
- public void ExportToExcel()
- {
- var v = new GridView();
- v.DataSource = this.GetExtractionViewModels(); // How to return this argument back as List?
- ....///
- }

Jignesh KumarRank #91 · 22.9K reputationPosted May 2, 2021, 2:40 AM EDT