public void Delete([FromRoute] string database, [FromRoute] string id) { _logger.Information("User {UserName} deleting item {ItemId} from {IP}", User.Identity.Name, id, HttpContext.Connection.RemoteIpAddress); ICadmusRepository repository = _repositoryProvider.CreateRepository(database); repository.DeleteItem(id, User.Identity.Name); }