Interface IAgreementService
Service for accessing Agreement
Namespace: ImageVault.Common.Services
Assembly: ImageVault.Common.dll
Syntax
public interface IAgreementService : IService
Methods
Delete(Int32)
Deletes a agreement
Declaration
void Delete(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | id | The id of the agreement |
DeleteAgreementFile(Guid, Int32)
Delete agreement file
Declaration
void DeleteAgreementFile(Guid agreementFileId, int agreementId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Guid | agreementFileId | |
| System.Int32 | agreementId |
Find(AgreementQuery)
Search agreements
Declaration
IList<AgreementListData> Find(AgreementQuery agreementQuery)
Parameters
| Type | Name | Description |
|---|---|---|
| AgreementQuery | agreementQuery |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IList<AgreementListData> |
GetAgreementFile(Guid)
Get agreement file
Declaration
AgreementFile GetAgreementFile(Guid agreementFileId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Guid | agreementFileId |
Returns
| Type | Description |
|---|---|
| AgreementFile |
GetById(Int32)
Gets a specific agreement
Declaration
Agreement GetById(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | id | The id of the agreement |
Returns
| Type | Description |
|---|---|
| Agreement |
Save(Agreement)
Creates or updates a agreement
Declaration
Agreement Save(Agreement agreement)
Parameters
| Type | Name | Description |
|---|---|---|
| Agreement | agreement | The agreement to update |
Returns
| Type | Description |
|---|---|
| Agreement |
SetMediaItemAgreements(Int32, IList<Int32>)
Adds items to a agreement
Declaration
void SetMediaItemAgreements(int mediaItemId, IList<int> agreementIds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | mediaItemId | |
| System.Collections.Generic.IList<System.Int32> | agreementIds |