Пример #1
0
 public void Apply(Issuance i)
 {
     i.Type = Type;
     i.Account = Account;
     i.FixedIssuance = FixedIssuance;
     i.MinIssuance = MinIssuance;
     i.MaxIssuance = MaxIssuance;
     i.DefaultIssuance = DefaultIssuance;
 }
Пример #2
0
 public static IssuanceEditModel FromDomain(Issuance i)
 {
     i = (i ?? new Issuance());
     return new IssuanceEditModel
                {
                    Type = i.Type,
                    Account = i.Account,
                    FixedIssuance = i.FixedIssuance,
                    MinIssuance = i.MinIssuance,
                    MaxIssuance = i.MaxIssuance,
                    DefaultIssuance = i.DefaultIssuance,
                };
 }