I am trying to display some rows in a table. Depending on the UserGroup, the View should show different markup. An administrator can delete rows, but a moderator can only ma
as the question is for else if in razor, i used this for SEO purpose
in view
@{
if (ViewBag.Option == "Mobiles")
{
ViewBag.Title = "Mobiles";
ViewBag.Description = "Mobiles";
ViewBag.Keywords = "Mobiles";
}
else if (ViewBag.Option == "holiday")
{
ViewBag.Title = "holiday";
ViewBag.Description = "holiday.";
ViewBag.Keywords = "holiday";
}
else
{
ViewBag.Title = "home";
ViewBag.Description = "home";
ViewBag.Keywords = "home";
}
}
hope helps someone.