public void AddClasp(ApiClaspClientResponseModel item) { if (!this.Clasps.Any(x => x.Id == item.Id)) { this.Clasps.Add(item); } }
public virtual ApiClaspClientRequestModel MapClientResponseToRequest( ApiClaspClientResponseModel response) { var request = new ApiClaspClientRequestModel(); request.SetProperties( response.NextChainId, response.PreviousChainId); return(request); }
public virtual ApiClaspClientResponseModel MapClientRequestToResponse( int id, ApiClaspClientRequestModel request) { var response = new ApiClaspClientResponseModel(); response.SetProperties(id, request.NextChainId, request.PreviousChainId); return(response); }