public void AddConfiguration(ApiConfigurationResponseModel item) { if (!this.Configurations.Any(x => x.Id == item.Id)) { this.Configurations.Add(item); } }
public virtual ApiConfigurationRequestModel MapResponseToRequest( ApiConfigurationResponseModel response) { var request = new ApiConfigurationRequestModel(); request.SetProperties( response.JSON); return(request); }
public virtual ApiConfigurationResponseModel MapRequestToResponse( string id, ApiConfigurationRequestModel request) { var response = new ApiConfigurationResponseModel(); response.SetProperties(id, request.JSON); return(response); }