public static ClsQuestionCollectionR GetAll(int ScriptID)
 {
     try
     {
         ClsQuestionCollectionR obj = new ClsQuestionCollectionR();
         obj.MapObjects(new ClsDynamicScriptDataService().Questions_GetAll(ScriptID));
         return(obj);
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--CRMDesigner--:--CRMDesigner.Business--:--ClsQuestionCollectionR.cs--:--GetAll()--");
         //ClsException.LogError(ex);
         //ClsException.WriteToErrorLogFile(ex);
         System.Text.StringBuilder sb = new StringBuilder();
         sb.AppendLine(ex.Message);
         sb.AppendLine();
         sb.AppendLine("StackTrace : " + ex.StackTrace);
         sb.AppendLine();
         sb.AppendLine("Location : " + ex.Data["My Key"].ToString());
         sb.AppendLine();
         sb1 = CreateTressInfo();
         sb.Append(sb1.ToString());
         VMuktiAPI.ClsLogging.WriteToTresslog(sb);
         return(null);
     }
 }
 //public static StringBuilder sb1;
 //public static StringBuilder CreateTressInfo()
 //{
 //    StringBuilder sb = new StringBuilder();
 //    sb.Append("User Is : " + VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName);
 //    sb.AppendLine();
 //    sb.Append("Peer Type is : " + VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType.ToString());
 //    sb.AppendLine();
 //    sb.Append("User's SuperNode is : " + VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP);
 //    sb.AppendLine();
 //    sb.Append("User's Machine Ip Address : " + VMuktiAPI.GetIPAddress.ClsGetIP4Address.GetIP4Address());
 //    sb.AppendLine();
 //    sb.AppendLine("----------------------------------------------------------------------------------------");
 //    return sb;
 //}
 public static ClsQuestionCollectionR GetAll(int ScriptID)
 {
     try
     {
         ClsQuestionCollectionR obj = new ClsQuestionCollectionR();
         obj.MapObjects(new ClsDynamicScriptDataService().Questions_GetAll(ScriptID));
         return(obj);
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "ClsQuestionCollectionR()", "ClsQuestionCollectionR.cs");
         return(null);
     }
 }