public IHttpActionResult FetchMessages(string sessionKey)
 {
     var messageService = new MessageService();
     var messages = messageService.FetchMessages(sessionKey);
     if (messages != null)
     {
         return Ok(messages);
     }
     return Unauthorized();
 }
 public IHttpActionResult SendMessage([FromUri]string sessionKey, Shared.Dto.Message msg)
 {
     var messageService = new MessageService();
     if (messageService.SendMessage(sessionKey, msg))
     {
         return Ok("Message " + msg.Body + " added.");
     }
     return Unauthorized();
 }