public void SaveLog(Log log) { log.IpAddress = GetIPAddress(); log.CreatedDate = DateTime.Now; _logsRepository.SaveLog(log); }