public void AddTable(ApiTableClientResponseModel item) { if (!this.Tables.Any(x => x.Id == item.Id)) { this.Tables.Add(item); } }
public virtual ApiTableClientRequestModel MapClientResponseToRequest( ApiTableClientResponseModel response) { var request = new ApiTableClientRequestModel(); request.SetProperties( response.Name); return(request); }
public virtual ApiTableClientResponseModel MapClientRequestToResponse( int id, ApiTableClientRequestModel request) { var response = new ApiTableClientResponseModel(); response.SetProperties(id, request.Name); return(response); }