예제 #1
0
 public void AddCompositePrimaryKey(ApiCompositePrimaryKeyResponseModel item)
 {
     if (!this.CompositePrimaryKeys.Any(x => x.Id == item.Id))
     {
         this.CompositePrimaryKeys.Add(item);
     }
 }
예제 #2
0
        public virtual ApiCompositePrimaryKeyRequestModel MapResponseToRequest(
            ApiCompositePrimaryKeyResponseModel response)
        {
            var request = new ApiCompositePrimaryKeyRequestModel();

            request.SetProperties(
                response.Id2);
            return(request);
        }
예제 #3
0
        public virtual ApiCompositePrimaryKeyResponseModel MapRequestToResponse(
            int id,
            ApiCompositePrimaryKeyRequestModel request)
        {
            var response = new ApiCompositePrimaryKeyResponseModel();

            response.SetProperties(id,
                                   request.Id2);
            return(response);
        }