Closed ramjet69 closed 2 years ago
I've often made this mistake too myself! The setter syntax is .Set(x => x.Property, Value)
- note the comma not equals
So change your code to
var viewResult = new ComponentRenderer<ConfirmUserEmail>()
.Set(x => x.Model, viewModel)
.Render();
That should do it
Just realised this was my error in my answer on your StackOverflow question - apologies for misleading you!
@conficient No Worries!
Thanks
Hello,
I am unable to figure out why I am getting a CS7036 on even the most basic model when using the Fluent Set.
Here is my model:
Here is my razor:
What am I doing wrong?
TIA