C# Класс PERMWebSolution.Models.Group

class manages user groups
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Group() публичный Метод

Empty Group constructor
public Group ( ) : System
Результат System

Group() публичный Метод

Overloaded constructor accepts the userId
public Group ( int userId ) : System
userId int user id
Результат System

Group() публичный Метод

Overloaded constructor accepts the group name
public Group ( string groupName ) : System
groupName string string group name
Результат System

checkGrouName() публичный Метод

Method returns true if such group already created
public checkGrouName ( ) : bool
Результат bool

deleteGroup() публичный Метод

Deletes user grou
public deleteGroup ( int id ) : bool
id int group ID to delete
Результат bool

getGroupData() публичный Метод

Returns the data
public getGroupData ( int groupId ) : Group
groupId int
Результат Group

getGroups() публичный Метод

Method returns list of user groups
public getGroups ( ) : List
Результат List

saveGroup() публичный Метод

Method saves user group
public saveGroup ( ) : bool
Результат bool

updateGroup() публичный Метод

Updates group data
public updateGroup ( ) : bool
Результат bool