我的视图中有下一个代码:
@if (Model is Manager)
{
//render manager button
}
else if (Model is Developer)
{
//render Developer button
}
else if (Model is UX)
{
//render UX button
}
这行得通,但我正在寻找最好的方法。任何想法?