Interface IContactRepository
Contact repository.
Namespace: Simplic.Contact
Assembly: Simplic.Contact.dll
Syntax
public interface IContactRepository
Methods
| Improve this Doc View SourceGetContactIdByPersonalAccountId(Guid)
Get contact id by personal account ID.
Declaration
long GetContactIdByPersonalAccountId(Guid personalAccountId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | personalAccountId | Unique personal account ID. |
Returns
Type | Description |
---|---|
System.Int64 | Unique contact id |
SearchByFulltext(String, Int32, Int32)
Gets all contacts that match the fulltext. Paging is enabled when limit > 0.
Declaration
IEnumerable<Contact> SearchByFulltext(string fulltext, int limit, int page)
Parameters
Type | Name | Description |
---|---|---|
System.String | fulltext | Search text that the contacts should fit. |
System.Int32 | limit | Maximum amount of contacts that should be returned per page. If 0, then there is no limit. |
System.Int32 | page | When limit > 0, the page parameter decides, which page of contacts should be returned. The most relevant contacts relative to the search text are on page one. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Contact> | Enum with contacts that match the search text. |