public virtual ApiPhoneNumberTypeResponseModel MapBOToModel(
            BOPhoneNumberType boPhoneNumberType)
        {
            var model = new ApiPhoneNumberTypeResponseModel();

            model.SetProperties(boPhoneNumberType.PhoneNumberTypeID, boPhoneNumberType.ModifiedDate, boPhoneNumberType.Name);

            return(model);
        }
Exemplo n.º 2
0
        public virtual BOPhoneNumberType MapEFToBO(
            PhoneNumberType ef)
        {
            var bo = new BOPhoneNumberType();

            bo.SetProperties(
                ef.PhoneNumberTypeID,
                ef.ModifiedDate,
                ef.Name);
            return(bo);
        }
Exemplo n.º 3
0
        public virtual PhoneNumberType MapBOToEF(
            BOPhoneNumberType bo)
        {
            PhoneNumberType efPhoneNumberType = new PhoneNumberType();

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

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