C# Class HelpRequest.Controllers.HelpController

Inheritance: ApplicationController
Show file Open project: ucdavis/HelpRequest

Public Properties

Property Type Description
ApplicationRepository IRepository
HelpTopicRepository IRepository

Public Methods

Method Description
Details ( int id, string appName, string subject ) : System.Web.Mvc.ActionResult

GET: /Help/Details/5 #6

HelpController ( IRepository helpTopicRepository, IRepository applicationRepository ) : System.Security.Principal
Index ( string appName, string subject ) : System.Web.Mvc.ActionResult

Index #1

WatchVideo ( int id, string appName, string subject ) : System.Web.Mvc.ActionResult

Watches the video. #7

Private Methods

Method Description
Create ( HelpTopicViewModel viewModel, string appName, string passedSubject ) : System.Web.Mvc.ActionResult
Create ( string appName, string subject ) : System.Web.Mvc.ActionResult
Edit ( int id, HelpTopic helpTopic, string appName, string passedSubject ) : System.Web.Mvc.ActionResult
Edit ( int id, string appName, string subject ) : System.Web.Mvc.ActionResult
IsUserAuthorized ( HelpTopic helpTopic, IPrincipal currentUser, string appName ) : bool

Determines whether [is user authorized] [the specified help topic].

Method Details

Details() public method

GET: /Help/Details/5 #6
public Details ( int id, string appName, string subject ) : System.Web.Mvc.ActionResult
id int The id of the Help topic.
appName string Filter to App Name
subject string
return System.Web.Mvc.ActionResult

HelpController() public method

public HelpController ( IRepository helpTopicRepository, IRepository applicationRepository ) : System.Security.Principal
helpTopicRepository IRepository
applicationRepository IRepository
return System.Security.Principal

Index() public method

Index #1
public Index ( string appName, string subject ) : System.Web.Mvc.ActionResult
appName string Name of the app.
subject string
return System.Web.Mvc.ActionResult

WatchVideo() public method

Watches the video. #7
public WatchVideo ( int id, string appName, string subject ) : System.Web.Mvc.ActionResult
id int The id of the Help topic.
appName string Filter to App Name
subject string
return System.Web.Mvc.ActionResult

Property Details

ApplicationRepository public property

public IRepository ApplicationRepository
return IRepository

HelpTopicRepository public property

public IRepository HelpTopicRepository
return IRepository