예제 #1
0
 public void AddBucket(ApiBucketClientResponseModel item)
 {
     if (!this.Buckets.Any(x => x.Id == item.Id))
     {
         this.Buckets.Add(item);
     }
 }
        public virtual ApiBucketClientRequestModel MapClientResponseToRequest(
            ApiBucketClientResponseModel response)
        {
            var request = new ApiBucketClientRequestModel();

            request.SetProperties(
                response.ExternalId,
                response.Name);
            return(request);
        }
        public virtual ApiBucketClientResponseModel MapClientRequestToResponse(
            int id,
            ApiBucketClientRequestModel request)
        {
            var response = new ApiBucketClientResponseModel();

            response.SetProperties(id,
                                   request.ExternalId,
                                   request.Name);
            return(response);
        }
예제 #4
0
 public void SetBucketIdNavigation(ApiBucketClientResponseModel value)
 {
     this.BucketIdNavigation = value;
 }