public virtual ApiSubscriptionServerResponseModel MapServerRequestToResponse(
            int id,
            ApiSubscriptionServerRequestModel request)
        {
            var response = new ApiSubscriptionServerResponseModel();

            response.SetProperties(id,
                                   request.Name,
                                   request.StripePlanName);
            return(response);
        }
Exemple #2
0
        public virtual ApiSubscriptionServerResponseModel MapEntityToModel(
            Subscription item)
        {
            var model = new ApiSubscriptionServerResponseModel();

            model.SetProperties(item.Id,
                                item.Name,
                                item.StripePlanName);

            return(model);
        }