public void AddCompositePrimaryKey(ApiCompositePrimaryKeyResponseModel item) { if (!this.CompositePrimaryKeys.Any(x => x.Id == item.Id)) { this.CompositePrimaryKeys.Add(item); } }
public virtual ApiCompositePrimaryKeyRequestModel MapResponseToRequest( ApiCompositePrimaryKeyResponseModel response) { var request = new ApiCompositePrimaryKeyRequestModel(); request.SetProperties( response.Id2); return(request); }
public virtual ApiCompositePrimaryKeyResponseModel MapRequestToResponse( int id, ApiCompositePrimaryKeyRequestModel request) { var response = new ApiCompositePrimaryKeyResponseModel(); response.SetProperties(id, request.Id2); return(response); }