i have this in my controller action in MVC
if (Profileid == User.Identity.Name)
{
ViewBag.Data = true;
}
i want to hide a button or link in my view when this condition is met.how do i go about this in my View. I am using Razor view. thanks