/// <summary>
 /// Create model
 /// </summary>
 /// <param name="model"></param>
 public TrustGroupRegistrationListApiModel(
     TrustGroupRegistrationListModel model)
 {
     Registrations = model.Registrations
                     .Select(g => new TrustGroupRegistrationApiModel(g))
                     .ToList();
     NextPageLink = model.NextPageLink;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create model
 /// </summary>
 /// <param name="model"></param>
 public static TrustGroupRegistrationListApiModel ToApiModel(
     this TrustGroupRegistrationListModel model)
 {
     if (model == null)
     {
         return(null);
     }
     return(new TrustGroupRegistrationListApiModel {
         Registrations = model.Registrations?
                         .Select(g => g.ToApiModel())
                         .ToList(),
         NextPageLink = model.NextPageLink,
     });
 }