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); }
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); }