public MessageController(MessageRepository messages, ApplicationDbContext dbContext)
 {
     _messages = messages;
     _service = new ViewMessageService(messages, dbContext);
 }
 public ViewMessageService(MessageRepository messages, ApplicationDbContext dbContext)
 {
     _messages = messages;
     _db = dbContext;
 }