public virtual ApiPersonRequestModel MapResponseToRequest( ApiPersonResponseModel response) { var request = new ApiPersonRequestModel(); request.SetProperties( response.AdditionalContactInfo, response.Demographic, response.EmailPromotion, response.FirstName, response.LastName, response.MiddleName, response.ModifiedDate, response.NameStyle, response.PersonType, response.Rowguid, response.Suffix, response.Title); return(request); }
public virtual ApiPersonResponseModel MapRequestToResponse( int businessEntityID, ApiPersonRequestModel request) { var response = new ApiPersonResponseModel(); response.SetProperties(businessEntityID, request.AdditionalContactInfo, request.Demographic, request.EmailPromotion, request.FirstName, request.LastName, request.MiddleName, request.ModifiedDate, request.NameStyle, request.PersonType, request.Rowguid, request.Suffix, request.Title); return(response); }