Пример #1
0
 public static ChargeGroup AsEntity(this ChargeGroupDocument document)
 {
     return(new ChargeGroup(new Guid(document.Id), document.Name, document.CapacityAmps, null));
 }
Пример #2
0
 public static ChargeGroup AsEntityExtended(this ChargeGroupDocument document,
                                            IEnumerable <ChargeStation> stations)
 {
     return(new ChargeGroup(new Guid(document.Id), document.Name, document.CapacityAmps, stations));
 }