public void AddCountryRequirement(ApiCountryRequirementResponseModel item) { if (!this.CountryRequirements.Any(x => x.Id == item.Id)) { this.CountryRequirements.Add(item); } }
public virtual ApiCountryRequirementRequestModel MapResponseToRequest( ApiCountryRequirementResponseModel response) { var request = new ApiCountryRequirementRequestModel(); request.SetProperties( response.CountryId, response.Details); return(request); }
public virtual ApiCountryRequirementResponseModel MapRequestToResponse( int id, ApiCountryRequirementRequestModel request) { var response = new ApiCountryRequirementResponseModel(); response.SetProperties(id, request.CountryId, request.Details); return(response); }