public static void GetAll(Model_Campaign parameters) { IList <Model_Campaign> ret = CampaignController.GetAllCampaign(parameters); AppTools.SendResponse(HttpContext.Current.Response, ret.ObjectToJSON()); }
protected void LoadItems(string sortField = "CampaignId", dg.Sql.SortDirection sortDirection = dg.Sql.SortDirection.ASC) { CampaignCollection col = CampaignController.GetAllCampaign(dgCampaign.PageSize, dgCampaign.CurrentPageIndex); BindList(col); }