예제 #1
0
 public static ClsLeadFormatCollection GetAll(Int64 FormatID)
 {
     try
     {
         ClsLeadFormatCollection obj = new ClsLeadFormatCollection();
         obj.MapObjects(new ClsQuestionAnsDataService().LeadFields_GetAll(FormatID));
         return(obj);
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--CRMDesigner--:--CRMDesigner.Business--:--ClsLeadFormatCollection.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);
     }
 }
예제 #2
0
 public static ClsLeadFormatCollection GetAll(Int64 FormatID)
 {
     try
     {
         ClsLeadFormatCollection obj = new ClsLeadFormatCollection();
         obj.MapObjects(new ClsQuestionAnsDataService().LeadFields_GetAll(FormatID));
         return(obj);
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "GetAll()", "ClsLeadFormatCollection.cs");
         return(null);
     }
 }