C# Class BLL.OrgService

Show file Open project: GHY-ORG/Firewood Class Usage Examples

Public Methods

Method Description
Delete ( System.Guid orgid ) : bool
GetIDByName ( string orgname ) : System.Guid

由名称获取ID

GetNameByID ( System.Guid orgid ) : string

通过OrgID获取社团组织名称

GetOrgByID ( System.Guid orgid ) : Org

获取Org实体

GetOrgCount ( ) : int

一共有多少社团

GetOrgList ( List orgidList ) : List

获取OrgList

GetPathByID ( System.Guid orgid ) : string

通过OrgID获取社团组织logo路径

IsBlankReg ( Org org ) : string

判断注册字段长度(社团名称、所属部门、简介、联系方式)

OrgNameRegistered ( string orgname ) : bool

判断名称是否已被注册

Register ( Org org ) : bool
ShowAllOrg ( int n, int page ) : List
UpdateInfo ( Org org ) : bool

Method Details

Delete() public method

public Delete ( System.Guid orgid ) : bool
orgid System.Guid
return bool

GetIDByName() public method

由名称获取ID
public GetIDByName ( string orgname ) : System.Guid
orgname string
return System.Guid

GetNameByID() public method

通过OrgID获取社团组织名称
public GetNameByID ( System.Guid orgid ) : string
orgid System.Guid
return string

GetOrgByID() public method

获取Org实体
public GetOrgByID ( System.Guid orgid ) : Org
orgid System.Guid
return DataSource.Models.Org

GetOrgCount() public method

一共有多少社团
public GetOrgCount ( ) : int
return int

GetOrgList() public method

获取OrgList
public GetOrgList ( List orgidList ) : List
orgidList List
return List

GetPathByID() public method

通过OrgID获取社团组织logo路径
public GetPathByID ( System.Guid orgid ) : string
orgid System.Guid
return string

IsBlankReg() public method

判断注册字段长度(社团名称、所属部门、简介、联系方式)
public IsBlankReg ( Org org ) : string
org DataSource.Models.Org
return string

OrgNameRegistered() public method

判断名称是否已被注册
public OrgNameRegistered ( string orgname ) : bool
orgname string
return bool

Register() public method

public Register ( Org org ) : bool
org DataSource.Models.Org
return bool

ShowAllOrg() public method

public ShowAllOrg ( int n, int page ) : List
n int
page int
return List

UpdateInfo() public method

public UpdateInfo ( Org org ) : bool
org DataSource.Models.Org
return bool