예제 #1
0
 public void AddCountryRequirement(ApiCountryRequirementResponseModel item)
 {
     if (!this.CountryRequirements.Any(x => x.Id == item.Id))
     {
         this.CountryRequirements.Add(item);
     }
 }
예제 #2
0
        public virtual ApiCountryRequirementRequestModel MapResponseToRequest(
            ApiCountryRequirementResponseModel response)
        {
            var request = new ApiCountryRequirementRequestModel();

            request.SetProperties(
                response.CountryId,
                response.Details);
            return(request);
        }
예제 #3
0
        public virtual ApiCountryRequirementResponseModel MapRequestToResponse(
            int id,
            ApiCountryRequirementRequestModel request)
        {
            var response = new ApiCountryRequirementResponseModel();

            response.SetProperties(id,
                                   request.CountryId,
                                   request.Details);
            return(response);
        }