示例#1
0
 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);
        }
示例#4
0
 public void SetChainIdNavigation(ApiChainClientResponseModel value)
 {
     this.ChainIdNavigation = value;
 }