Beispiel #1
0
        public virtual ApiBadgeClientRequestModel MapClientResponseToRequest(
            ApiBadgeClientResponseModel response)
        {
            var request = new ApiBadgeClientRequestModel();

            request.SetProperties(
                response.Date,
                response.Name,
                response.UserId);
            return(request);
        }
Beispiel #2
0
        public virtual ApiBadgeClientResponseModel MapClientRequestToResponse(
            int id,
            ApiBadgeClientRequestModel request)
        {
            var response = new ApiBadgeClientResponseModel();

            response.SetProperties(id,
                                   request.Date,
                                   request.Name,
                                   request.UserId);
            return(response);
        }