public ActionResult <IEnumerable <MessageDto> > GetMessages() { var messages = _messageBoardRepository.GetAll(); return(Ok(_mapper.Map <IEnumerable <MessageDto> >(messages))); }