예제 #1
0
        public ActionResult <IEnumerable <MessageDto> > GetMessages()
        {
            var messages = _messageBoardRepository.GetAll();

            return(Ok(_mapper.Map <IEnumerable <MessageDto> >(messages)));
        }