C# Class Badges.Controllers.BadgeController

Inheritance: ApplicationController
Mostrar archivo Open project: ucdavis/Badges

Public Methods

Method Description
BadgeController ( IRepositoryFactory repositoryFactory ) : System
Browse ( ) : System.Web.Mvc.ActionResult

Browse all badges in the system

Create ( ) : System.Web.Mvc.ActionResult

Create a new badge!

Earn ( System.Guid id ) : System.Web.Mvc.ActionResult

Earn a badge by associating experiences and work

Fulfillments ( System.Guid id ) : System.Web.Mvc.ActionResult

Return fulfillments for a given badge

Index ( ) : System.Web.Mvc.ActionResult
MyBadges ( ) : System.Web.Mvc.ActionResult

Shows all badges you have earned as well as badges you are working on

MyExperiences ( string filter ) : System.Web.Mvc.ActionResult

Returns work associated with this student, optionally filtered by a 'search' string

MyWork ( string filter ) : System.Web.Mvc.ActionResult

Returns experinces that match the work name passed in as a filter

Private Methods

Method Description
AssociateWorkWithCriterion ( BadgeSubmission submission, IEnumerable criterion ) : void
Create ( BadgeAddModel model ) : System.Web.Mvc.ActionResult
Earn ( System.Guid id, BadgeAssociatedWorkModel criterion, string reflections ) : System.Web.Mvc.ActionResult
GetBadgeAddModel ( ) : BadgeAddModel
GetWorkForExperiences ( IQueryable experiencesQuery ) : JsonNetResult
Submit ( System.Guid id, BadgeAssociatedWorkModel criterion, string reflections ) : System.Web.Mvc.ActionResult

Method Details

BadgeController() public method

public BadgeController ( IRepositoryFactory repositoryFactory ) : System
repositoryFactory IRepositoryFactory
return System

Browse() public method

Browse all badges in the system
public Browse ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Create() public method

Create a new badge!
public Create ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Earn() public method

Earn a badge by associating experiences and work
public Earn ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid Badge Id
return System.Web.Mvc.ActionResult

Fulfillments() public method

Return fulfillments for a given badge
public Fulfillments ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid BadgeId
return System.Web.Mvc.ActionResult

Index() public method

public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

MyBadges() public method

Shows all badges you have earned as well as badges you are working on
public MyBadges ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

MyExperiences() public method

Returns work associated with this student, optionally filtered by a 'search' string
public MyExperiences ( string filter ) : System.Web.Mvc.ActionResult
filter string Currently filters by name of experience
return System.Web.Mvc.ActionResult

MyWork() public method

Returns experinces that match the work name passed in as a filter
public MyWork ( string filter ) : System.Web.Mvc.ActionResult
filter string Name of a specific work (or set of works)
return System.Web.Mvc.ActionResult