Exemplo 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);
        }
Exemplo 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;
 }