C# Class PERMWebSolution.Models.Group

class manages user groups
Afficher le fichier Open project: VK-EIF/PERM-WEB-SOURCE Class Usage Examples

Méthodes publiques

Méthode Description
Group ( ) : System

Empty Group constructor

Group ( int userId ) : System

Overloaded constructor accepts the userId

Group ( string groupName ) : System

Overloaded constructor accepts the group name

checkGrouName ( ) : bool

Method returns true if such group already created

deleteGroup ( int id ) : bool

Deletes user grou

getGroupData ( int groupId ) : Group

Returns the data

getGroups ( ) : List

Method returns list of user groups

saveGroup ( ) : bool

Method saves user group

updateGroup ( ) : bool

Updates group data

Method Details

Group() public méthode

Empty Group constructor
public Group ( ) : System
Résultat System

Group() public méthode

Overloaded constructor accepts the userId
public Group ( int userId ) : System
userId int user id
Résultat System

Group() public méthode

Overloaded constructor accepts the group name
public Group ( string groupName ) : System
groupName string string group name
Résultat System

checkGrouName() public méthode

Method returns true if such group already created
public checkGrouName ( ) : bool
Résultat bool

deleteGroup() public méthode

Deletes user grou
public deleteGroup ( int id ) : bool
id int group ID to delete
Résultat bool

getGroupData() public méthode

Returns the data
public getGroupData ( int groupId ) : Group
groupId int
Résultat Group

getGroups() public méthode

Method returns list of user groups
public getGroups ( ) : List
Résultat List

saveGroup() public méthode

Method saves user group
public saveGroup ( ) : bool
Résultat bool

updateGroup() public méthode

Updates group data
public updateGroup ( ) : bool
Résultat bool