In addition to the IsUserInRole method, the Roles class contains a lot of other methods that
enable you to work with roles programmatically. For example, you can create and delete roles,
assign users to and remove users from roles, and you can get a list of users that are assigned to a
certain role. For more information about the Roles API, check out the MSDN documentation at
http://tinyurl.com/RolesAPI4-5 or pick up a copy of Professional ASP.NET 3.5 Security,
Membership, and Role Management with C# and VB by Bilal Haidar (Wrox, ISBN: 978-0-470-
37930-1). Although the book targets ASP.NET 3.5, you’ll find that most topics discussed in that
book still apply to ASP.NET 4.5.
In the following exercise, you learn how to modify the photo albums page so users logged in as
Managers are able to delete pictures from a photo album. Other users won’t be able to delete a picture
because the Delete button will be hidden for them.