Esempio n. 1
0
        public virtual ApiStudentResponseModel MapRequestToResponse(
            int id,
            ApiStudentRequestModel request)
        {
            var response = new ApiStudentResponseModel();

            response.SetProperties(id,
                                   request.Birthday,
                                   request.Email,
                                   request.EmailRemindersEnabled,
                                   request.FamilyId,
                                   request.FirstName,
                                   request.IsAdult,
                                   request.LastName,
                                   request.Phone,
                                   request.SmsRemindersEnabled,
                                   request.UserId);
            return(response);
        }