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

            request.SetProperties(
                response.Name);
            return(request);
        }
Пример #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;
 }