Example #1
0
 public void AddStudent(ApiStudentClientResponseModel item)
 {
     if (!this.Students.Any(x => x.Id == item.Id))
     {
         this.Students.Add(item);
     }
 }
Example #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);
        }
Example #3
0
 public void SetStudentIdNavigation(ApiStudentClientResponseModel value)
 {
     this.StudentIdNavigation = value;
 }