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

            request.SetProperties(
                response.Badge,
                response.Email,
                response.FirstName,
                response.LastName,
                response.Password);
            return(request);
        }
Beispiel #2
0
        public virtual ApiOfficerClientResponseModel MapClientRequestToResponse(
            int id,
            ApiOfficerClientRequestModel request)
        {
            var response = new ApiOfficerClientResponseModel();

            response.SetProperties(id,
                                   request.Badge,
                                   request.Email,
                                   request.FirstName,
                                   request.LastName,
                                   request.Password);
            return(response);
        }