Exemplo n.º 1
0
        public async Task DeleteComputer(int id)
        {
            var log = new Log()
            {
                Name  = "DeleteComputer",
                Time  = DateTime.Now,
                Index = id
            };

            await _collection.InsertOneAsync(log);

            await _repository.DeleteComputer(id);
        }