public async Task ClearTodosAsync(int todoListId)
        {
            using (var tran = _unitOfWork.BeginTransaction())
            {
                var storedList = await _todoListRepository.FindAsync(l => l.Id == todoListId, new[] { "Todos" });

                await _todoListService.ClearTodosAsync(storedList);

                await _unitOfWork.SaveAsync();

                tran.Commit();
            }
        }
        public async Task <EntityDescriptor> ClearTodosAsync(EntityDescriptor todoListDesc)
        {
            using (var tran = _unitOfWork.BeginTransaction())
            {
                var storedList = await _todoListRepository.FindAsync(l => l.Id == todoListDesc.Id, new[] { "Todos" });

                await _todoListService.ClearTodosAsync(storedList);

                var prepared = _todoListRepository.PrepareVersioning(todoListDesc);
                await _unitOfWork.SaveAsync();

                tran.Commit();

                return(new EntityDescriptor(prepared));
            }
        }