Exemplo n.º 1
0
 public void AddDestination(ApiDestinationClientResponseModel item)
 {
     if (!this.Destinations.Any(x => x.Id == item.Id))
     {
         this.Destinations.Add(item);
     }
 }
        public virtual ApiDestinationClientRequestModel MapClientResponseToRequest(
            ApiDestinationClientResponseModel response)
        {
            var request = new ApiDestinationClientRequestModel();

            request.SetProperties(
                response.CountryId,
                response.Name,
                response.Order);
            return(request);
        }
        public virtual ApiDestinationClientResponseModel MapClientRequestToResponse(
            int id,
            ApiDestinationClientRequestModel request)
        {
            var response = new ApiDestinationClientResponseModel();

            response.SetProperties(id,
                                   request.CountryId,
                                   request.Name,
                                   request.Order);
            return(response);
        }
 public void SetDestinationIdNavigation(ApiDestinationClientResponseModel value)
 {
     this.DestinationIdNavigation = value;
 }