Exemplo n.º 1
0
        public HobbyDBUserVM(Models.UserRecord user)
        {
            Dialog = new DialogStuff();

            Id = user.Id;
            HobbyDBUserName = user.HDBUserName;
            HobbyDBUserId   = user.HDBUserId;
            FirstName       = user.FirstName;
            LastName        = user.LastName;
            PhoneNumber     = user.PhoneNumber;
            Email           = user.PreferredEmail.EmailAddress;
            PayPalEmail     = user.PayPalEmail.EmailAddress;
            IsBuyer         = (user.UserType & Models.UserRecord.UserTypes.Buyer) == Models.UserRecord.UserTypes.Buyer;
            IsSeller        = (user.UserType & Models.UserRecord.UserTypes.Seller) == Models.UserRecord.UserTypes.Seller;
            IsNewRecord     = false;
        }
Exemplo n.º 2
0
 public HobbyDBUserVM()
 {
     Dialog = new DialogStuff();
 }