public CreditCardViewModel CreateNew() { var customerCreditCard = new IACustomerCreditCard {MPUserID = _customerMemberProtectUserId}; _dataContext.IACustomerCreditCards.InsertOnSubmit(customerCreditCard); var vm = new CreditCardViewModel(_customerMemberProtectUserId, customerCreditCard); return vm; }
public CreditCardViewModel(Guid mpUserId, IACustomerCreditCard customerCreditCard) { _mpUserId = mpUserId; _customerCreditCard = customerCreditCard; }
public CustomerCreditCardViewModel(MemberProtect memberProtect, IACustomerCreditCard customerCreditCard) { IACustomerCreditCard = customerCreditCard; _memberProtect = memberProtect; }