Exemplo n.º 1
0
 //constructor
 public RequestsController(prsContext context)
 {
     _context = context;
 }
 //construct pass in type/parameter
 public UsersController(prsContext context)
 {
     //set property = parameter
     _context = context;//or can use this._context = context.
     //The only time you need this. is if property and parameter have same name
 }