Beispiel #1
0
 /// <summary>
 /// To binding
 /// </summary>
 /// <param name="pObj"></param>
 /// <returns></returns>
 public AuditTrail ToBinding(MAuditsTrails pObj)
 {
     try
     {
         var _binding = new AuditTrail
         {
             AuditTrailId = pObj.ATID,
             TransBy      = pObj.TRBY,
             TransDate    = pObj.TDTA,
             TransTable   = pObj.TTBL,
             TransType    = pObj.TTYP,
             TransValue   = pObj.TVAL
         };
         return(_binding);
     }
     catch (Exception ex) { throw ex; }
 }
Beispiel #2
0
        /// <summary>
        /// To model
        /// </summary>
        /// <param name="pObj"></param>
        /// <returns></returns>
        public MAuditsTrails ToModel(AuditTrail pObj)
        {
            try
            {
                var _model = new MAuditsTrails
                {
                    ATID = pObj.AuditTrailId,
                    TDTA = pObj.TransDate,
                    TTYP = pObj.TransType,
                    TRBY = pObj.TransBy,
                    TTBL = pObj.TransTable,
                    TVAL = pObj.TransValue
                };

                return(_model);
            }
            catch (Exception ex) { throw ex; }
        }