public void AddAirline(ApiAirlineClientResponseModel item) { if (!this.Airlines.Any(x => x.Id == item.Id)) { this.Airlines.Add(item); } }
public virtual ApiAirlineClientRequestModel MapClientResponseToRequest( ApiAirlineClientResponseModel response) { var request = new ApiAirlineClientRequestModel(); request.SetProperties( response.Name); return(request); }
public virtual ApiAirlineClientResponseModel MapClientRequestToResponse( int id, ApiAirlineClientRequestModel request) { var response = new ApiAirlineClientResponseModel(); response.SetProperties(id, request.Name); return(response); }