public void AddAirline(ApiAirlineResponseModel item) { if (!this.Airlines.Any(x => x.Id == item.Id)) { this.Airlines.Add(item); } }
public virtual ApiAirlineRequestModel MapResponseToRequest( ApiAirlineResponseModel response) { var request = new ApiAirlineRequestModel(); request.SetProperties( response.Name); return request; }
public virtual ApiAirlineResponseModel MapRequestToResponse( int id, ApiAirlineRequestModel request) { var response = new ApiAirlineResponseModel(); response.SetProperties(id, request.Name); return response; }