I wanted to get a value from the model and pass it inside a class that is inside the controller.
Here's my class on Controller I wanted the variable "MyVariavel" to receive the value of my model
public class classeTeste
{
public string MinhaVariavel = (ValorBarValuesssDaModel) ;
}
Here's my model:
public class QRCodeModel
{
public string bar2 { get; set; }
public string barconteudo { get; set; }
}
I wanted the value received in the Model in "bar2" to be my class in my Controller