예제 #1
0
 public static ExceptionObjectEntity ToBllExceptionObject(this DalExceptionObject dalExceptionObject)
 {
     if (dalExceptionObject == null)
     {
         return(null);
     }
     return(new ExceptionObjectEntity()
     {
         Id = dalExceptionObject.Id,
         Message = dalExceptionObject.Message,
         Controller = dalExceptionObject.Controller,
         Action = dalExceptionObject.Action,
         Date = dalExceptionObject.Date,
         StackTrace = dalExceptionObject.StackTrace
     });
 }
예제 #2
0
        public static DalExceptionObject ToDalExceptionObject(this ExceptionObject orm)
        {
            if (orm == null)
            {
                return(null);
            }
            var exceptionObject = new DalExceptionObject
            {
                Id         = orm.Id,
                Message    = orm.Message,
                Controller = orm.Controller,
                Action     = orm.Action,
                Date       = orm.Date,
                StackTrace = orm.StackTrace
            };

            return(exceptionObject);
        }
예제 #3
0
        public static ExceptionObject ToOrmExceptionObject(this DalExceptionObject exceptionObject)
        {
            if (exceptionObject == null)
            {
                return(null);
            }
            var orm = new ExceptionObject
            {
                Id         = exceptionObject.Id,
                Message    = exceptionObject.Message,
                Controller = exceptionObject.Controller,
                Action     = exceptionObject.Action,
                Date       = exceptionObject.Date,
                StackTrace = exceptionObject.StackTrace
            };

            return(orm);
        }