and
‘s are not allowed in @if syntax…
Q: How can I add spacing/margin within a razor @if {} block?
@if (User.IsInRole("Admin"))
{
@* I need to add certain bottom margin here *@
}
else
{
@* I need to add certain bottom margin here *@
}
@* More stuff down here ... *@
This is one of many ways to do it