public void AddCountry(ApiCountryResponseModel item) { if (!this.Countries.Any(x => x.Id == item.Id)) { this.Countries.Add(item); } }
public virtual ApiCountryRequestModel MapResponseToRequest( ApiCountryResponseModel response) { var request = new ApiCountryRequestModel(); request.SetProperties( response.Name); return(request); }
public virtual ApiCountryResponseModel MapRequestToResponse( int id, ApiCountryRequestModel request) { var response = new ApiCountryResponseModel(); response.SetProperties(id, request.Name); return(response); }