Esempio n. 1
0
 public void AddCountryRequirement(ApiCountryRequirementClientResponseModel item)
 {
     if (!this.CountryRequirements.Any(x => x.Id == item.Id))
     {
         this.CountryRequirements.Add(item);
     }
 }
        public virtual ApiCountryRequirementClientRequestModel MapClientResponseToRequest(
            ApiCountryRequirementClientResponseModel response)
        {
            var request = new ApiCountryRequirementClientRequestModel();

            request.SetProperties(
                response.CountryId,
                response.Details);
            return(request);
        }
        public virtual ApiCountryRequirementClientResponseModel MapClientRequestToResponse(
            int id,
            ApiCountryRequirementClientRequestModel request)
        {
            var response = new ApiCountryRequirementClientResponseModel();

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