예제 #1
0
 public void AddStudent(ApiStudentClientResponseModel item)
 {
     if (!this.Students.Any(x => x.Id == item.Id))
     {
         this.Students.Add(item);
     }
 }
예제 #2
0
        public virtual ApiStudentClientRequestModel MapClientResponseToRequest(
            ApiStudentClientResponseModel response)
        {
            var request = new ApiStudentClientRequestModel();

            request.SetProperties(
                response.Birthday,
                response.Email,
                response.EmailRemindersEnabled,
                response.FamilyId,
                response.FirstName,
                response.IsAdult,
                response.LastName,
                response.Phone,
                response.SmsRemindersEnabled,
                response.UserId);
            return(request);
        }
예제 #3
0
 public void SetStudentIdNavigation(ApiStudentClientResponseModel value)
 {
     this.StudentIdNavigation = value;
 }