0

I am looking for ways to implement custom user-roles in windows application with vb.net. I got a database table called Roles with Administrator and User entries. User cannot see some of the form data. In ASP.NET MVC we can do like.

[Authorize(Roles = "Administrator")]
public function GetAccount() as Array

End Function

If it could be done this way that would be great.

Thanks in advance.

Jim Counts
  • 12,535
  • 9
  • 45
  • 63
fireBand
  • 947
  • 7
  • 23
  • 42

1 Answers1

0

The source code for the ASP.NET Authorize attribute is online here. You can see how they implemented it in MVC and adapt it to your needs.

Jim Counts
  • 12,535
  • 9
  • 45
  • 63