public virtual ApiSubscriptionResponseModel MapBOToModel(
            BOSubscription boSubscription)
        {
            var model = new ApiSubscriptionResponseModel();

            model.SetProperties(boSubscription.Id, boSubscription.IsDisabled, boSubscription.JSON, boSubscription.Name, boSubscription.Type);

            return(model);
        }
        public virtual BOSubscription MapEFToBO(
            Subscription ef)
        {
            var bo = new BOSubscription();

            bo.SetProperties(
                ef.Id,
                ef.IsDisabled,
                ef.JSON,
                ef.Name,
                ef.Type);
            return(bo);
        }
        public virtual Subscription MapBOToEF(
            BOSubscription bo)
        {
            Subscription efSubscription = new Subscription();

            efSubscription.SetProperties(
                bo.Id,
                bo.IsDisabled,
                bo.JSON,
                bo.Name,
                bo.Type);
            return(efSubscription);
        }
        public virtual BOSubscription MapModelToBO(
            string id,
            ApiSubscriptionRequestModel model
            )
        {
            BOSubscription boSubscription = new BOSubscription();

            boSubscription.SetProperties(
                id,
                model.IsDisabled,
                model.JSON,
                model.Name,
                model.Type);
            return(boSubscription);
        }