Example #1
0
        public virtual ApiStudentXFamilyResponseModel MapBOToModel(
            BOStudentXFamily boStudentXFamily)
        {
            var model = new ApiStudentXFamilyResponseModel();

            model.SetProperties(boStudentXFamily.Id, boStudentXFamily.FamilyId, boStudentXFamily.StudentId);

            return(model);
        }
        public virtual BOStudentXFamily MapEFToBO(
            StudentXFamily ef)
        {
            var bo = new BOStudentXFamily();

            bo.SetProperties(
                ef.Id,
                ef.FamilyId,
                ef.StudentId);
            return(bo);
        }
        public virtual StudentXFamily MapBOToEF(
            BOStudentXFamily bo)
        {
            StudentXFamily efStudentXFamily = new StudentXFamily();

            efStudentXFamily.SetProperties(
                bo.FamilyId,
                bo.Id,
                bo.StudentId);
            return(efStudentXFamily);
        }
Example #4
0
        public virtual BOStudentXFamily MapModelToBO(
            int id,
            ApiStudentXFamilyRequestModel model
            )
        {
            BOStudentXFamily boStudentXFamily = new BOStudentXFamily();

            boStudentXFamily.SetProperties(
                id,
                model.FamilyId,
                model.StudentId);
            return(boStudentXFamily);
        }