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