コード例 #1
0
 public static LoginLogData ToModel(this ILoginLog log, bool withDetails = false)
 {
     if(log == null)
     return null;
       var data = new LoginLogData() {  EventType = log.EventType,   LoginId = log.LoginId  };
       if(withDetails) {
     data.Notes = log.Notes;
       }
       data.AssignCommon(log);
       return data;
 }
コード例 #2
0
        public static LoginLogData ToModel(this ILoginLog log, bool withDetails = false)
        {
            if (log == null)
            {
                return(null);
            }
            var data = new LoginLogData()
            {
                EventType = log.EventType, LoginId = log.LoginId
            };

            if (withDetails)
            {
                data.Notes = log.Notes;
            }
            data.AssignCommon(log);
            return(data);
        }