Пример #1
0
 public void AddExtensionConfiguration(ApiExtensionConfigurationResponseModel item)
 {
     if (!this.ExtensionConfigurations.Any(x => x.Id == item.Id))
     {
         this.ExtensionConfigurations.Add(item);
     }
 }
        public virtual ApiExtensionConfigurationRequestModel MapResponseToRequest(
            ApiExtensionConfigurationResponseModel response)
        {
            var request = new ApiExtensionConfigurationRequestModel();

            request.SetProperties(
                response.ExtensionAuthor,
                response.JSON,
                response.Name);
            return(request);
        }
        public virtual ApiExtensionConfigurationResponseModel MapRequestToResponse(
            string id,
            ApiExtensionConfigurationRequestModel request)
        {
            var response = new ApiExtensionConfigurationResponseModel();

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