コード例 #1
0
 public void AddTable(ApiTableClientResponseModel item)
 {
     if (!this.Tables.Any(x => x.Id == item.Id))
     {
         this.Tables.Add(item);
     }
 }
コード例 #2
0
        public virtual ApiTableClientRequestModel MapClientResponseToRequest(
            ApiTableClientResponseModel response)
        {
            var request = new ApiTableClientRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
コード例 #3
0
        public virtual ApiTableClientResponseModel MapClientRequestToResponse(
            int id,
            ApiTableClientRequestModel request)
        {
            var response = new ApiTableClientResponseModel();

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