C# Class PERMWebSolution.Models.Group

class manages user groups
Mostra file Open project: VK-EIF/PERM-WEB-SOURCE Class Usage Examples

Public Methods

Method 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 method

Empty Group constructor
public Group ( ) : System
return System

Group() public method

Overloaded constructor accepts the userId
public Group ( int userId ) : System
userId int user id
return System

Group() public method

Overloaded constructor accepts the group name
public Group ( string groupName ) : System
groupName string string group name
return System

checkGrouName() public method

Method returns true if such group already created
public checkGrouName ( ) : bool
return bool

deleteGroup() public method

Deletes user grou
public deleteGroup ( int id ) : bool
id int group ID to delete
return bool

getGroupData() public method

Returns the data
public getGroupData ( int groupId ) : Group
groupId int
return Group

getGroups() public method

Method returns list of user groups
public getGroups ( ) : List
return List

saveGroup() public method

Method saves user group
public saveGroup ( ) : bool
return bool

updateGroup() public method

Updates group data
public updateGroup ( ) : bool
return bool