示例#1
0
        public virtual ApiAddressTypeResponseModel MapBOToModel(
            BOAddressType boAddressType)
        {
            var model = new ApiAddressTypeResponseModel();

            model.SetProperties(boAddressType.AddressTypeID, boAddressType.ModifiedDate, boAddressType.Name, boAddressType.Rowguid);

            return(model);
        }
        public virtual BOAddressType MapEFToBO(
            AddressType ef)
        {
            var bo = new BOAddressType();

            bo.SetProperties(
                ef.AddressTypeID,
                ef.ModifiedDate,
                ef.Name,
                ef.Rowguid);
            return(bo);
        }
        public virtual AddressType MapBOToEF(
            BOAddressType bo)
        {
            AddressType efAddressType = new AddressType();

            efAddressType.SetProperties(
                bo.AddressTypeID,
                bo.ModifiedDate,
                bo.Name,
                bo.Rowguid);
            return(efAddressType);
        }
示例#4
0
        public virtual BOAddressType MapModelToBO(
            int addressTypeID,
            ApiAddressTypeRequestModel model
            )
        {
            BOAddressType boAddressType = new BOAddressType();

            boAddressType.SetProperties(
                addressTypeID,
                model.ModifiedDate,
                model.Name,
                model.Rowguid);
            return(boAddressType);
        }