public void AddVehicleCapabilities(ApiVehicleCapabilitiesClientResponseModel item) { if (!this.VehicleCapabilities.Any(x => x.Id == item.Id)) { this.VehicleCapabilities.Add(item); } }
public virtual ApiVehicleCapabilitiesClientRequestModel MapClientResponseToRequest( ApiVehicleCapabilitiesClientResponseModel response) { var request = new ApiVehicleCapabilitiesClientRequestModel(); request.SetProperties( response.VehicleCapabilityId, response.VehicleId); return(request); }
public virtual ApiVehicleCapabilitiesClientResponseModel MapClientRequestToResponse( int id, ApiVehicleCapabilitiesClientRequestModel request) { var response = new ApiVehicleCapabilitiesClientResponseModel(); response.SetProperties(id, request.VehicleCapabilityId, request.VehicleId); return(response); }