public async Task UpdateComputer(ComputerInformation computerInformation) { var log = new Log() { Name = "UpdateComputer", Time = DateTime.Now, Index = computerInformation.ComputerId }; await _collection.InsertOneAsync(log); await _repository.UpdateComputer(computerInformation); }