C# Class AJH.CMS.Core.Data.FormRoleManager

Show file Open project: ajhCMS/AJH.CMS.WEB.UI

Public Methods

Method Description
Add ( FormRole formRole ) : int
Delete ( int ID ) : void
Delete ( int FormID, int RoleID ) : void

GetFormRole ( int ID ) : FormRole
GetFormsRoles ( int FormID, int RoleID ) : List

GetFormsRolesByUserID ( int UserID ) : List
Update ( FormRole formRole ) : void

Method Details

Add() public static method

public static Add ( FormRole formRole ) : int
formRole AJH.CMS.Core.Entities.FormRole
return int

Delete() public static method

public static Delete ( int ID ) : void
ID int
return void

Delete() public static method

public static Delete ( int FormID, int RoleID ) : void
FormID int By default -1
RoleID int By default -1
return void

GetFormRole() public static method

public static GetFormRole ( int ID ) : FormRole
ID int
return AJH.CMS.Core.Entities.FormRole

GetFormsRoles() public static method

public static GetFormsRoles ( int FormID, int RoleID ) : List
FormID int By default -1
RoleID int By default -1
return List

GetFormsRolesByUserID() public static method

public static GetFormsRolesByUserID ( int UserID ) : List
UserID int
return List

Update() public static method

public static Update ( FormRole formRole ) : void
formRole AJH.CMS.Core.Entities.FormRole
return void