Пример #1
0
        public async Task <bool> DeleteLogAsync(int logId, CancellationToken cancellationToken = default(CancellationToken))
        {
            var log = await GetWorkLogByIdAsync(logId);

            if (log != null)
            {
                return(await _logsRepository.DeleteAsync(log, cancellationToken));
            }

            return(false);
        }