I am trying to concatenate strings firstname and lastname in my model. When I run my project I get an error that reads....*
InvalidOperationException: Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions.
Here is the line of code that is giving me the error.
<input asp-for="@(Model.ContactPersonName + "" + @Model.ContactPersonSurname)" class="form-control" />