コード例 #1
0
ファイル: ApiResponse.cs プロジェクト: codenesium/samples
 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;
 }