Пример #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;
 }