public static List <SeasonClass> GetSeason(int Event, int id, string code, string code1) { var lst = new List <SeasonClass>(); var dt = DlSeason.GetSeason(Event, id, code, code1); if (dt.Rows.Count > 0) { foreach (DataRow dr in dt.Rows) { var obj = new SeasonClass(Convert.ToInt32(dr["Id"]), dr["Season"].ToString()); lst.Add(obj); } } return(lst); }
public static DataTable GetAllSeason(int Event, int id, string code, string code1) { var dt = DlSeason.GetSeason(Event, id, code, code1); return(dt); }