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

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

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