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

            bo.SetProperties(
                ef.Id,
                ef.Notes,
                ef.PcEmail,
                ef.PcFirstName,
                ef.PcLastName,
                ef.PcPhone,
                ef.StudioId);
            return(bo);
        }
예제 #2
0
        public virtual BOFamily MapModelToBO(
            int id,
            ApiFamilyRequestModel model
            )
        {
            BOFamily boFamily = new BOFamily();

            boFamily.SetProperties(
                id,
                model.Notes,
                model.PcEmail,
                model.PcFirstName,
                model.PcLastName,
                model.PcPhone,
                model.StudioId);
            return(boFamily);
        }