/// <summary>
 /// Map new Wallet Model
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static NewWalletModel Map(this Contracts.NewWalletModel model)
 {
     if (model == null)
     {
         return(null);
     }
     return(new NewWalletModel((WalletType)Enum.Parse(typeof(WalletType), model.WalletType.ToString(), true),
                               model.Address));
 }
Пример #2
0
 /// <summary>
 /// Map new Wallet Model
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static AutorestClient.Models.NewWalletModel Map(this Contracts.NewWalletModel model)
 {
     return(Mapper.Map <AutorestClient.Models.NewWalletModel>(model));
 }