Hi Team
I need some help, want to pass some parameters using List<>(). Here is my sample code.
-
- public IList<ExtractionViewModel> GetExtractionViewModels(int Week, string Year)
- {
- }
-
-
- public string Year { get; set; }
-
- public int Week { get; set; }
-
- public void ExportToExcel()
- {
- var v = new GridView();
- v.DataSource = this.GetExtractionViewModels();
- ....
- }