public void AddChannel(ApiChannelResponseModel item) { if (!this.Channels.Any(x => x.Id == item.Id)) { this.Channels.Add(item); } }
public virtual ApiChannelRequestModel MapResponseToRequest( ApiChannelResponseModel response) { var request = new ApiChannelRequestModel(); request.SetProperties( response.DataVersion, response.JSON, response.LifecycleId, response.Name, response.ProjectId, response.TenantTags); return(request); }
public virtual ApiChannelResponseModel MapRequestToResponse( string id, ApiChannelRequestModel request) { var response = new ApiChannelResponseModel(); response.SetProperties(id, request.DataVersion, request.JSON, request.LifecycleId, request.Name, request.ProjectId, request.TenantTags); return(response); }