コード例 #1
0
 public void AddConfiguration(ApiConfigurationResponseModel item)
 {
     if (!this.Configurations.Any(x => x.Id == item.Id))
     {
         this.Configurations.Add(item);
     }
 }
コード例 #2
0
        public virtual ApiConfigurationRequestModel MapResponseToRequest(
            ApiConfigurationResponseModel response)
        {
            var request = new ApiConfigurationRequestModel();

            request.SetProperties(
                response.JSON);
            return(request);
        }
コード例 #3
0
        public virtual ApiConfigurationResponseModel MapRequestToResponse(
            string id,
            ApiConfigurationRequestModel request)
        {
            var response = new ApiConfigurationResponseModel();

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