Beispiel #1
0
        public virtual BOFamily MapEFToBO(
            Family ef)
        {
            var bo = new BOFamily();

            bo.SetProperties(
                ef.Id,
                ef.Note,
                ef.PrimaryContactEmail,
                ef.PrimaryContactFirstName,
                ef.PrimaryContactLastName,
                ef.PrimaryContactPhone);
            return(bo);
        }
        public virtual BOFamily MapModelToBO(
            int id,
            ApiFamilyRequestModel model
            )
        {
            BOFamily boFamily = new BOFamily();

            boFamily.SetProperties(
                id,
                model.Note,
                model.PrimaryContactEmail,
                model.PrimaryContactFirstName,
                model.PrimaryContactLastName,
                model.PrimaryContactPhone);
            return(boFamily);
        }