Ejemplo n.º 1
0
 public void AddSpaceFeature(ApiSpaceFeatureResponseModel item)
 {
     if (!this.SpaceFeatures.Any(x => x.Id == item.Id))
     {
         this.SpaceFeatures.Add(item);
     }
 }
        public virtual ApiSpaceFeatureRequestModel MapResponseToRequest(
            ApiSpaceFeatureResponseModel response)
        {
            var request = new ApiSpaceFeatureRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
        public virtual ApiSpaceFeatureResponseModel MapRequestToResponse(
            int id,
            ApiSpaceFeatureRequestModel request)
        {
            var response = new ApiSpaceFeatureResponseModel();

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