Example #1
0
        public virtual ApiPersonRefResponseModel MapBOToModel(
            BOPersonRef boPersonRef)
        {
            var model = new ApiPersonRefResponseModel();

            model.SetProperties(boPersonRef.Id, boPersonRef.PersonAId, boPersonRef.PersonBId);

            return(model);
        }
Example #2
0
        public virtual BOPersonRef MapEFToBO(
            PersonRef ef)
        {
            var bo = new BOPersonRef();

            bo.SetProperties(
                ef.Id,
                ef.PersonAId,
                ef.PersonBId);
            return(bo);
        }
Example #3
0
        public virtual PersonRef MapBOToEF(
            BOPersonRef bo)
        {
            PersonRef efPersonRef = new PersonRef();

            efPersonRef.SetProperties(
                bo.Id,
                bo.PersonAId,
                bo.PersonBId);
            return(efPersonRef);
        }
Example #4
0
        public virtual BOPersonRef MapModelToBO(
            int id,
            ApiPersonRefRequestModel model
            )
        {
            BOPersonRef boPersonRef = new BOPersonRef();

            boPersonRef.SetProperties(
                id,
                model.PersonAId,
                model.PersonBId);
            return(boPersonRef);
        }