private ActionLink DeleteUserAction(FaToolUser user) { bool disabled = User.IsAdminUser() == false || user.IsAdminUser(); return(new ActionLink( "Delete User", Url.Action("Delete", new { id = user.Id }), disabled)); }
private ActionLink LockUserAction(FaToolUser user) { bool disabled = User.IsAdminUser() == false || user.IsAdminUser(); return(new ActionLink( "Lock/Unlock User", Url.Action("Lockout", new { id = user.Id }), disabled)); }