예제 #1
0
 public void AddChain(ApiChainResponseModel item)
 {
     if (!this.Chains.Any(x => x.Id == item.Id))
     {
         this.Chains.Add(item);
     }
 }
예제 #2
0
        public virtual ApiChainRequestModel MapResponseToRequest(
            ApiChainResponseModel response)
        {
            var request = new ApiChainRequestModel();

            request.SetProperties(
                response.ChainStatusId,
                response.ExternalId,
                response.Name,
                response.TeamId);
            return(request);
        }
예제 #3
0
        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);
        }