public User CreateUser(string userName, string password, string firstName, string lastName)
 {
     var user = new User(userName, password, firstName, lastName);
     var role = session.Query<Role>().First(r => r.Name == AuthRole.Member.ToString());
     user.AssignRole(role);
     session.Save(user);
     return user;
 }
 public void Save(User user)
 {
     session.Save(user);
 }
 public OhSoSecurePrincipal(User user)
 {
     UserName = user.UserName;
     FirstName = user.FirstName;
     Roles = user.Roles.Select(r => r.Name);
 }