How can I enable or disable the add/edit/delete action link in the ASP.NET MVC razor view based on the user roles. I have tried the following but it seems not working while updating the user role. 

If I have updated the user role, the updated value did not refresh.It still work with the old value.How can I resolve this issue?

```
if (User.IsInRole("Admin")) 
{ 
}

```