Implementing MessageController.cs
MessageController.cs implementation.