Пример #1
0
 public static void AddExceptions(Exceptions item)
 {
     try
     {
         item.Track       = SubString(item.Track, 2000);
         item.Source      = SubString(item.Source, 100);
         item.Description = SubString(item.Description, 400);
         item.Detail      = SubString(item.Detail, 1000);
         item.DateTime    = DateTime.Now;
         IExceptions factory = ExceptionsFactory.GetFactory();
         factory.AddExceptions(item);
     }
     catch (Exception ex)
     {
         TxtLogServices.WriteTxtLogEx("AddExceptionsLogError", ex);
     }
 }
Пример #2
0
        public static List <Exceptions> LoadExceptions(ExceptionCondition condition, int pageIndex, int pageSize, out int recordTotalCount)
        {
            IExceptions factory = ExceptionsFactory.GetFactory();

            return(factory.LoadExceptions(condition, pageIndex, pageSize, out recordTotalCount));
        }