public DataTable Get(int[] app, string filter, DateTime?date) { try { AD_Store wod = new AD_Store(); DataTable dtbl = new DataTable(); if (filter == "get") { dtbl = wod.Get(app, filter); } else if (filter == "search") { dtbl = wod.Search(date); } return(dtbl); } catch (Exception) { return(null); } }