コード例 #1
0
        public virtual ApiRateClientRequestModel MapClientResponseToRequest(
            ApiRateClientResponseModel response)
        {
            var request = new ApiRateClientRequestModel();

            request.SetProperties(
                response.AmountPerMinute,
                response.TeacherId,
                response.TeacherSkillId);
            return(request);
        }
コード例 #2
0
        public virtual ApiRateClientResponseModel MapClientRequestToResponse(
            int id,
            ApiRateClientRequestModel request)
        {
            var response = new ApiRateClientResponseModel();

            response.SetProperties(id,
                                   request.AmountPerMinute,
                                   request.TeacherId,
                                   request.TeacherSkillId);
            return(response);
        }