Example #1
0
 public void AddCity(ApiCityClientResponseModel item)
 {
     if (!this.Cities.Any(x => x.Id == item.Id))
     {
         this.Cities.Add(item);
     }
 }
        public virtual ApiCityClientRequestModel MapClientResponseToRequest(
            ApiCityClientResponseModel response)
        {
            var request = new ApiCityClientRequestModel();

            request.SetProperties(
                response.Name,
                response.ProvinceId);
            return(request);
        }
        public virtual ApiCityClientResponseModel MapClientRequestToResponse(
            int id,
            ApiCityClientRequestModel request)
        {
            var response = new ApiCityClientResponseModel();

            response.SetProperties(id,
                                   request.Name,
                                   request.ProvinceId);
            return(response);
        }
 public void SetCityIdNavigation(ApiCityClientResponseModel value)
 {
     this.CityIdNavigation = value;
 }