public void ClearChatHistory()
 {
     using (HistoryRepository repository = this.CreateRepository())
         repository.ClearChatHistory();
 }