public string Bind_Group_View() { DataTable dt = new DataTable(); string jsonresult; if (Session["CompanyCD"] != null) { Group_ViewBL gvbl = new Group_ViewBL(); dt = gvbl.Get_Group_View(); } jsonresult = DataTableToJSONWithJSONNet(dt); return(jsonresult); }
public string Group_View_Delete(string id) { var message = string.Empty; if (id == null) { message = "NOK"; } else { Group_ViewBL gbl = new Group_ViewBL(); string InsertOperator = Session["CompanyCD"].ToString(); string PcName = System.Environment.MachineName; message = gbl.Group_Info_Delete(id, PcName, InsertOperator); } return(JsonConvert.SerializeObject(message)); }
public string Get_Group_View_ForEdit(string id) { Group_ViewBL gbl = new Group_ViewBL(); if (id != null) { DataTable dtinfo = new DataTable(); dtinfo = gbl.Get_Group_View_ForEdit(id); if (dtinfo.Rows.Count > 0) { string jsonresult; jsonresult = JsonConvert.SerializeObject(dtinfo); return(jsonresult); } } return(null); }