Пример #1
0
        public virtual BOPhoneNumberType MapEFToBO(
            PhoneNumberType ef)
        {
            var bo = new BOPhoneNumberType();

            bo.SetProperties(
                ef.PhoneNumberTypeID,
                ef.ModifiedDate,
                ef.Name);
            return(bo);
        }
        public virtual BOPhoneNumberType MapModelToBO(
            int phoneNumberTypeID,
            ApiPhoneNumberTypeRequestModel model
            )
        {
            BOPhoneNumberType boPhoneNumberType = new BOPhoneNumberType();

            boPhoneNumberType.SetProperties(
                phoneNumberTypeID,
                model.ModifiedDate,
                model.Name);
            return(boPhoneNumberType);
        }