public void AddChain(ApiChainClientResponseModel item) { if (!this.Chains.Any(x => x.Id == item.Id)) { this.Chains.Add(item); } }
public virtual ApiChainClientRequestModel MapClientResponseToRequest( ApiChainClientResponseModel response) { var request = new ApiChainClientRequestModel(); request.SetProperties( response.ChainStatusId, response.ExternalId, response.Name, response.TeamId); return(request); }
public virtual ApiChainClientResponseModel MapClientRequestToResponse( int id, ApiChainClientRequestModel request) { var response = new ApiChainClientResponseModel(); response.SetProperties(id, request.ChainStatusId, request.ExternalId, request.Name, request.TeamId); return(response); }
public void SetChainIdNavigation(ApiChainClientResponseModel value) { this.ChainIdNavigation = value; }