예제 #1
0
 public void AddTeacherXTeacherSkill(ApiTeacherXTeacherSkillResponseModel item)
 {
     if (!this.TeacherXTeacherSkills.Any(x => x.Id == item.Id))
     {
         this.TeacherXTeacherSkills.Add(item);
     }
 }
예제 #2
0
        public virtual ApiTeacherXTeacherSkillRequestModel MapResponseToRequest(
            ApiTeacherXTeacherSkillResponseModel response)
        {
            var request = new ApiTeacherXTeacherSkillRequestModel();

            request.SetProperties(
                response.TeacherId,
                response.TeacherSkillId);
            return(request);
        }
예제 #3
0
        public virtual ApiTeacherXTeacherSkillResponseModel MapRequestToResponse(
            int id,
            ApiTeacherXTeacherSkillRequestModel request)
        {
            var response = new ApiTeacherXTeacherSkillResponseModel();

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