public static ChargeGroup AsEntity(this ChargeGroupDocument document) { return(new ChargeGroup(new Guid(document.Id), document.Name, document.CapacityAmps, null)); }
public static ChargeGroup AsEntityExtended(this ChargeGroupDocument document, IEnumerable <ChargeStation> stations) { return(new ChargeGroup(new Guid(document.Id), document.Name, document.CapacityAmps, stations)); }