Пример #1
0
 public void AddProxy(ApiProxyResponseModel item)
 {
     if (!this.Proxies.Any(x => x.Id == item.Id))
     {
         this.Proxies.Add(item);
     }
 }
Пример #2
0
        public virtual ApiProxyRequestModel MapResponseToRequest(
            ApiProxyResponseModel response)
        {
            var request = new ApiProxyRequestModel();

            request.SetProperties(
                response.JSON,
                response.Name);
            return(request);
        }
Пример #3
0
        public virtual ApiProxyResponseModel MapRequestToResponse(
            string id,
            ApiProxyRequestModel request)
        {
            var response = new ApiProxyResponseModel();

            response.SetProperties(id,
                                   request.JSON,
                                   request.Name);
            return(response);
        }