Example #1
0
        public virtual ApiTeacherClientRequestModel MapClientResponseToRequest(
            ApiTeacherClientResponseModel response)
        {
            var request = new ApiTeacherClientRequestModel();

            request.SetProperties(
                response.Birthday,
                response.Email,
                response.FirstName,
                response.LastName,
                response.Phone,
                response.UserId);
            return(request);
        }
Example #2
0
        public virtual ApiTeacherClientResponseModel MapClientRequestToResponse(
            int id,
            ApiTeacherClientRequestModel request)
        {
            var response = new ApiTeacherClientResponseModel();

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