Exemple #1
0
        public virtual ApiSpeciesClientRequestModel MapClientResponseToRequest(
            ApiSpeciesClientResponseModel response)
        {
            var request = new ApiSpeciesClientRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Exemple #2
0
        public virtual ApiSpeciesClientResponseModel MapClientRequestToResponse(
            int id,
            ApiSpeciesClientRequestModel request)
        {
            var response = new ApiSpeciesClientResponseModel();

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