public LogEntryEntity CreataLogEntry(LogEntryEntity logEntryEntity) { LogEntry newLogEntry = PrepareEntityToModel(logEntryEntity); newLogEntry.CreatedDate = DateTime.Now; newLogEntry.CreatedUtcdate = DateTime.UtcNow; _logEntry.AddLogEntry(newLogEntry); logEntryEntity.Id = newLogEntry.Id; return(logEntryEntity); }