Exemplo n.º 1
0
 public void AddBucket(ApiBucketResponseModel item)
 {
     if (!this.Buckets.Any(x => x.Id == item.Id))
     {
         this.Buckets.Add(item);
     }
 }
        public virtual ApiBucketRequestModel MapResponseToRequest(
            ApiBucketResponseModel response)
        {
            var request = new ApiBucketRequestModel();

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

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