Interface IGroupService
Namespace: Simplic.Group
Assembly: Simplic.Group.dll
Syntax
public interface IGroupService
Methods
| Improve this Doc View SourceDelete(Int32)
Deletes a group
Declaration
bool Delete(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | Ident to be deleted. |
Returns
Type | Description |
---|---|
System.Boolean | True if successfull |
DeleteByGroupId(Int32)
Deletes a group
Declaration
bool DeleteByGroupId(int groupId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | groupId | Group Id to be deleted. |
Returns
Type | Description |
---|---|
System.Boolean | True if successfull |
GetAll()
Gets a list of all groups
Declaration
IEnumerable<Group> GetAll()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Group> | A list of Group |
GetAllByUserId(Int32)
Gets a list of all groups of a user
Declaration
IEnumerable<Group> GetAllByUserId(int userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | userId |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Group> | A list of Group |
GetAllSortedByName()
Gets a list of all groups sorted by group name
Declaration
IEnumerable<Group> GetAllSortedByName()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Group> | A list of Group |
GetById(Int32)
Gets a group given by its id
Declaration
Group GetById(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | Id of the group to search |
Returns
Type | Description |
---|---|
Group | A Group |
GetUserIdsByGroupIdent(Int32)
Gets a list of user ids of a group
Declaration
IEnumerable<int> GetUserIdsByGroupIdent(int groupIdent)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | groupIdent |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Int32> |
Save(Group)
Inserts or updates a group into the database
Declaration
bool Save(Group group)
Parameters
Type | Name | Description |
---|---|---|
Group | group | Group to be saved. |
Returns
Type | Description |
---|---|
System.Boolean | True if successfull |