Ejemplo n.º 1
0
        public virtual ApiTeacherResponseModel MapBOToModel(
            BOTeacher boTeacher)
        {
            var model = new ApiTeacherResponseModel();

            model.SetProperties(boTeacher.Id, boTeacher.Birthday, boTeacher.Email, boTeacher.FirstName, boTeacher.LastName, boTeacher.Phone, boTeacher.UserId);

            return(model);
        }
Ejemplo n.º 2
0
        public virtual BOTeacher MapEFToBO(
            Teacher ef)
        {
            var bo = new BOTeacher();

            bo.SetProperties(
                ef.Id,
                ef.Birthday,
                ef.Email,
                ef.FirstName,
                ef.LastName,
                ef.Phone,
                ef.UserId);
            return(bo);
        }
Ejemplo n.º 3
0
        public virtual Teacher MapBOToEF(
            BOTeacher bo)
        {
            Teacher efTeacher = new Teacher();

            efTeacher.SetProperties(
                bo.Birthday,
                bo.Email,
                bo.FirstName,
                bo.Id,
                bo.LastName,
                bo.Phone,
                bo.UserId);
            return(efTeacher);
        }
Ejemplo n.º 4
0
        public virtual BOTeacher MapModelToBO(
            int id,
            ApiTeacherRequestModel model
            )
        {
            BOTeacher boTeacher = new BOTeacher();

            boTeacher.SetProperties(
                id,
                model.Birthday,
                model.Email,
                model.FirstName,
                model.LastName,
                model.Phone,
                model.UserId);
            return(boTeacher);
        }