public CustomRoleProvider(string currentLogin, DataAccess.IRoleDao roleDao) : base() { if (roleDao == null) { throw new ArgumentException("roleDao"); } _roleDao = roleDao; _currentLogin = currentLogin; }
public CustomRoleProvider() : base() { _currentLogin = System.Web.HttpContext.Current.User.Identity.Name; _roleDao = new DataAccess.SQLSupport.RoleDao(); }