public async Task <long> CreateNewLogAsync(Log log) { if (!LogValidator.ValidateDefault(log)) { throw new InvalidOperationException(Resources.LogValidFailString); } return(await _logsRepository.AddLogAsync(log)); }