public MessagesController()
 {
     var context = new ChatDatabaseContext();
     messagesRepository = new MessagesRepository(context);
 }
 public UsersController()
 {
     var context = new ChatDatabaseContext();
     this.usersRepository = new UsersRepository(context);
 }