Ejemplo n.º 1
0
 public void AddTeacherTeacherSkill(ApiTeacherTeacherSkillClientResponseModel item)
 {
     if (!this.TeacherTeacherSkills.Any(x => x.Id == item.Id))
     {
         this.TeacherTeacherSkills.Add(item);
     }
 }
        public virtual ApiTeacherTeacherSkillClientRequestModel MapClientResponseToRequest(
            ApiTeacherTeacherSkillClientResponseModel response)
        {
            var request = new ApiTeacherTeacherSkillClientRequestModel();

            request.SetProperties(
                response.TeacherId,
                response.TeacherSkillId);
            return(request);
        }
        public virtual ApiTeacherTeacherSkillClientResponseModel MapClientRequestToResponse(
            int id,
            ApiTeacherTeacherSkillClientRequestModel request)
        {
            var response = new ApiTeacherTeacherSkillClientResponseModel();

            response.SetProperties(id,
                                   request.TeacherId,
                                   request.TeacherSkillId);
            return(response);
        }