C# Class JustPressPlay.Controllers.CommentsController

Inheritance: Controller
显示文件 Open project: RIT-MAGIC/JustPressPlay

Public Methods

Method Description
Index ( ) : System.Web.Mvc.ActionResult

Testing comments - to be removed

Private Methods

Method Description
Add ( int earningID, bool earningIsAchievement, String text ) : System.Web.Mvc.ActionResult
CommentsEnabled ( int earningID, bool earningIsAchievement, UnitOfWork work ) : bool

Determines if comments are enabled in both the site and the individual earning

Delete ( int commentID ) : System.Web.Mvc.ActionResult
Disable ( int earningID, bool earningIsAchievement ) : System.Boolean
Edit ( int commentID, String text ) : System.Web.Mvc.ActionResult
Enable ( int earningID, bool earningIsAchievement ) : System.Boolean
EnableDisable ( int earningID, bool earningIsAchievement, bool newState ) : System.Boolean

Helper for enabling or disabling comments on earnings

UserCanAccessEarning ( int earningID, bool earningIsAchievement, UnitOfWork work, user &earningUser, object &earningTemplate ) : bool

Determines if the logged in user has access to the earning

Method Details

Index() public method

Testing comments - to be removed
public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult