public void AddChain(ApiChainResponseModel item) { if (!this.Chains.Any(x => x.Id == item.Id)) { this.Chains.Add(item); } }
public virtual ApiChainRequestModel MapResponseToRequest( ApiChainResponseModel response) { var request = new ApiChainRequestModel(); request.SetProperties( response.ChainStatusId, response.ExternalId, response.Name, response.TeamId); return(request); }
public virtual ApiChainResponseModel MapRequestToResponse( int id, ApiChainRequestModel request) { var response = new ApiChainResponseModel(); response.SetProperties(id, request.ChainStatusId, request.ExternalId, request.Name, request.TeamId); return(response); }