Пример #1
0
 /// <summary>
 /// Create Vehicle Search Response from domain Vehicle Search Response
 /// </summary>
 public static HireGroupVehiclesResponse CreateFromFoRa(this ResponseModel.GetVehicleResponse source)
 {
     return(new HireGroupVehiclesResponse
     {
         Vehicles = source.Vehicles.Select(hg => hg.CreateFrom(false)),
         TotalCount = source.TotalCount
     });
 }
Пример #2
0
 /// <summary>
 /// Create Vehicle Search Response from domain Vehicle Search Response
 /// </summary>
 public static GetVehicleResponse CreateFrom(this ResponseModel.GetVehicleResponse source)
 {
     return(new GetVehicleResponse
     {
         Vehicles = source.Vehicles.Select(hg => hg.CreateFromListViewContent()),
         TotalCount = source.TotalCount
     });
 }