public JsonResult FillAgentGroup(Int64 ID_AgentGroup) { try { DataTable dtbl = new DataTable(); BlAgentGroup blAgentGroup = new BlAgentGroup(); blAgentGroup.MasterID = ID_AgentGroup; blAgentGroup.UserCode = Convert.ToInt64(Session["ID_Agent"]); blAgentGroup.FK_Company = Convert.ToInt64(Session["ID_Company"]); dtbl = blAgentGroup.SelectAllData(); return(Json(Converttojson(dtbl), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(ex)); } }
public JsonResult SelectAgentGroupAll(string PageIndex = "1", string SearchItem = "") { try { int statusCode = 1; DataTable dtbl = new DataTable(); BlAgentGroup blAgentGroup = new BlAgentGroup(); blAgentGroup.PageIndex = Convert.ToInt32(PageIndex); blAgentGroup.FK_Company = Convert.ToInt64(Session["ID_Company"]); blAgentGroup.AgentGroupCode = SearchItem; blAgentGroup.AgentGroupName = SearchItem; dtbl = blAgentGroup.SelectAllData(); return(Json(Converttojson(dtbl), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { /// return(Json(ex)); } }