public void Delete(string id) { if (_currentSession != null && _currentSession.SessionId == id) { _currentSession = null; } _store.Delete(id); }
public IActionResult Delete(long sessionId) { _store.Delete(sessionId); return(new ObjectResult(new SessionResult("Deleted!", sessionId))); }