Get Model value and pass it to a class in Controller C # /. Net

0

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

    
asked by anonymous 23.05.2018 / 19:04

0 answers