public void RemoveAllMessages()
        {
            newMessages.Clear();

            db.Messages.RemoveRange(db.Messages);
            db.SaveChanges();
        }