Exemplo n.º 1
0
 public void AddCountry(ApiCountryClientResponseModel item)
 {
     if (!this.Countries.Any(x => x.Id == item.Id))
     {
         this.Countries.Add(item);
     }
 }
Exemplo n.º 2
0
        public virtual ApiCountryClientRequestModel MapClientResponseToRequest(
            ApiCountryClientResponseModel response)
        {
            var request = new ApiCountryClientRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Exemplo n.º 3
0
        public virtual ApiCountryClientResponseModel MapClientRequestToResponse(
            int id,
            ApiCountryClientRequestModel request)
        {
            var response = new ApiCountryClientResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }
 public void SetCountryIdNavigation(ApiCountryClientResponseModel value)
 {
     this.CountryIdNavigation = value;
 }