Example #1
0
 public void AddSpaceFeature(ApiSpaceFeatureClientResponseModel item)
 {
     if (!this.SpaceFeatures.Any(x => x.Id == item.Id))
     {
         this.SpaceFeatures.Add(item);
     }
 }
Example #2
0
        public virtual ApiSpaceFeatureClientRequestModel MapClientResponseToRequest(
            ApiSpaceFeatureClientResponseModel response)
        {
            var request = new ApiSpaceFeatureClientRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Example #3
0
        public virtual ApiSpaceFeatureClientResponseModel MapClientRequestToResponse(
            int id,
            ApiSpaceFeatureClientRequestModel request)
        {
            var response = new ApiSpaceFeatureClientResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }
Example #4
0
 public void SetSpaceFeatureIdNavigation(ApiSpaceFeatureClientResponseModel value)
 {
     this.SpaceFeatureIdNavigation = value;
 }