public virtual BOPaymentType MapEFToBO(
            PaymentType ef)
        {
            var bo = new BOPaymentType();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
Beispiel #2
0
        public virtual BOPaymentType MapModelToBO(
            int id,
            ApiPaymentTypeRequestModel model
            )
        {
            BOPaymentType boPaymentType = new BOPaymentType();

            boPaymentType.SetProperties(
                id,
                model.Name);
            return(boPaymentType);
        }