public virtual ApiTeacherSkillResponseModel MapBOToModel(
            BOTeacherSkill boTeacherSkill)
        {
            var model = new ApiTeacherSkillResponseModel();

            model.SetProperties(boTeacherSkill.Id, boTeacherSkill.Name, boTeacherSkill.StudioId);

            return(model);
        }
Exemplo n.º 2
0
        public virtual BOTeacherSkill MapEFToBO(
            TeacherSkill ef)
        {
            var bo = new BOTeacherSkill();

            bo.SetProperties(
                ef.Id,
                ef.Name,
                ef.StudioId);
            return(bo);
        }
Exemplo n.º 3
0
        public virtual TeacherSkill MapBOToEF(
            BOTeacherSkill bo)
        {
            TeacherSkill efTeacherSkill = new TeacherSkill();

            efTeacherSkill.SetProperties(
                bo.Id,
                bo.Name,
                bo.StudioId);
            return(efTeacherSkill);
        }
        public virtual BOTeacherSkill MapModelToBO(
            int id,
            ApiTeacherSkillRequestModel model
            )
        {
            BOTeacherSkill boTeacherSkill = new BOTeacherSkill();

            boTeacherSkill.SetProperties(
                id,
                model.Name,
                model.StudioId);
            return(boTeacherSkill);
        }