View Source
Interface IMemberGroupService
Assembly: Umbraco.Core.dll
Syntax
public interface IMemberGroupService : IService
Methods
View Source
CreateAsync(IMemberGroup)
Declaration
Task<Attempt<IMemberGroup, MemberGroupOperationStatus>> CreateAsync(IMemberGroup memberGroup)
Parameters
Returns
View Source
Delete(IMemberGroup)
Declaration
void Delete(IMemberGroup memberGroup)
Parameters
View Source
DeleteAsync(Guid)
Deletes a IMemberGroup by removing it and its usages from the db
Declaration
Task<Attempt<IMemberGroup, MemberGroupOperationStatus>> DeleteAsync(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
The key of the IMemberGroup to delete
|
Returns
View Source
GetAll()
Declaration
IEnumerable<IMemberGroup> GetAll()
Returns
View Source
GetAllAsync()
Declaration
Task<IEnumerable<IMemberGroup>> GetAllAsync()
Returns
View Source
GetAsync(Guid)
Get a member group by key.
Declaration
Task<IMemberGroup> GetAsync(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
of the member group to get.
|
Returns
View Source
GetById(Guid)
Declaration
IMemberGroup GetById(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
View Source
GetById(Int32)
Declaration
IMemberGroup GetById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetByIds(IEnumerable<Int32>)
Declaration
IEnumerable<IMemberGroup> GetByIds(IEnumerable<int> ids)
Parameters
Type |
Name |
Description |
IEnumerable<System.Int32> |
ids |
|
Returns
View Source
GetByIdsAsync(IEnumerable<Int32>)
Gets a list of member groups with the given ids.
Declaration
Task<IEnumerable<IMemberGroup>> GetByIdsAsync(IEnumerable<int> ids)
Parameters
Type |
Name |
Description |
IEnumerable<System.Int32> |
ids |
An enumerable list of System.Int32 ids, to get the member groups by.
|
Returns
View Source
GetByName(String)
Declaration
IMemberGroup GetByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
View Source
GetByNameAsync(String)
Get a member group by name.
Declaration
Task<IMemberGroup> GetByNameAsync(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
Name of the member group to get.
|
Returns
View Source
Save(IMemberGroup)
Declaration
void Save(IMemberGroup memberGroup)
Parameters
View Source
UpdateAsync(IMemberGroup)
Declaration
Task<Attempt<IMemberGroup, MemberGroupOperationStatus>> UpdateAsync(IMemberGroup memberGroup)
Parameters
Returns