Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Your viewModel1 has to be a property, and it's a field at the moment. Change it to:

public DownloadViewModel viewModel1 { get; set; } 

Explanation why such restriction exists, can be found here (primarily due to notification/verifications mechanisms simply not working for fields):

Your viewModel1 has to be a property, and it's a field at the moment. Change it to:

public DownloadViewModel viewModel1 { get; set; } 

Explanation why such restriction exists, can be found here (primarily due to notification/verifications mechanisms simply not working for fields):

Your viewModel1 has to be a property, and it's a field at the moment. Change it to:

public DownloadViewModel viewModel1 { get; set; } 

Explanation why such restriction exists, can be found here (primarily due to notification/verifications mechanisms simply not working for fields):

link to better expalanation of problem
Source Link
k.m
  • 31.6k
  • 10
  • 64
  • 87

Your viewModel1 has to be a property, and it's a field at the moment. Change it to:

public DownloadViewModel viewModel1 { get; set; } 

Explanation why such restriction exists, can be found here (primarily due to notification/verifications mechanisms simply not working for fields):

Your viewModel1 has to be a property, and it's a field at the moment. Change it to:

public DownloadViewModel viewModel1 { get; set; } 

Your viewModel1 has to be a property, and it's a field at the moment. Change it to:

public DownloadViewModel viewModel1 { get; set; } 

Explanation why such restriction exists, can be found here (primarily due to notification/verifications mechanisms simply not working for fields):

Source Link
k.m
  • 31.6k
  • 10
  • 64
  • 87

Your viewModel1 has to be a property, and it's a field at the moment. Change it to:

public DownloadViewModel viewModel1 { get; set; }