public void AddAirTransport(ApiAirTransportResponseModel item) { if (!this.AirTransports.Any(x => x.AirlineId == item.AirlineId)) { this.AirTransports.Add(item); } }
public virtual ApiAirTransportRequestModel MapResponseToRequest( ApiAirTransportResponseModel response) { var request = new ApiAirTransportRequestModel(); request.SetProperties( response.FlightNumber, response.HandlerId, response.Id, response.LandDate, response.PipelineStepId, response.TakeoffDate); return(request); }
public virtual ApiAirTransportResponseModel MapRequestToResponse( int airlineId, ApiAirTransportRequestModel request) { var response = new ApiAirTransportResponseModel(); response.SetProperties(airlineId, request.FlightNumber, request.HandlerId, request.Id, request.LandDate, request.PipelineStepId, request.TakeoffDate); return(response); }