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 KumarPosted May 2, 2021, 6:40 AM