Esempio n. 1
0
        public static OperationLogData ToModel(this IOperationLog log, bool withDetails = false)
        {
            if (log == null)
            {
                return(null);
            }
            var data = new OperationLogData()
            {
                Id        = log.Id, CreatedOn = log.CreatedOn, UserName = log.UserName,
                WebCallId = log.WebCallId, UserSessionId = log.UserSessionId, Message = log.Message
            };

            if (withDetails)
            {
            }
            data.AssignCommon(log);
            return(data);
        }
Esempio n. 2
0
 public static OperationLogData ToModel(this IOperationLog log, bool withDetails = false)
 {
     if(log == null)
     return null;
       var data = new OperationLogData() {Id = log.Id, CreatedOn = log.CreatedOn, UserName = log.UserName,
     WebCallId = log.WebCallId, UserSessionId = log.UserSessionId,  Message = log.Message };
       if(withDetails) {
       }
       data.AssignCommon(log);
       return data;
 }