public static string ManageScripts(string intMode, string intScriptId, string strScriptName, string strScriptDescription) { DataSet ds = new DataSet(); PhoneDashboard objPhoneDashboard = new PhoneDashboard(); objPhoneDashboard.intMode = Convert.ToInt32(intMode); objPhoneDashboard.intScriptId = Convert.ToInt32(intScriptId); objPhoneDashboard.strScriptName = strScriptName; objPhoneDashboard.strScriptDescription = strScriptDescription; ds = UserBLL.Instance.manageScripts(objPhoneDashboard); if (ds != null) { if (ds.Tables[0].Rows.Count > 0) { return(JsonConvert.SerializeObject(ds.Tables[0])); } else { return(string.Empty); } } else { return(string.Empty); } }
public DataSet manageScripts(PhoneDashboard objPhoneDashboard) { return(UserDAL.Instance.manageScripts(objPhoneDashboard)); }