public JsonPatchDocument <ApiBucketRequestModel> CreatePatch(ApiBucketRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiBucketRequestModel>();

            patch.Replace(x => x.ExternalId, model.ExternalId);
            patch.Replace(x => x.Name, model.Name);
            return(patch);
        }
        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);
        }