Пример #1
0
 public void AddCountry(ApiCountryClientResponseModel item)
 {
     if (!this.Countries.Any(x => x.Id == item.Id))
     {
         this.Countries.Add(item);
     }
 }
        public virtual ApiCountryClientRequestModel MapClientResponseToRequest(
            ApiCountryClientResponseModel response)
        {
            var request = new ApiCountryClientRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
        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;
 }