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); }
public void SetBucketIdNavigation(ApiBucketClientResponseModel value) { this.BucketIdNavigation = value; }