C# Class Badges.Controllers.BadgeController

Inheritance: ApplicationController
Afficher le fichier Open project: ucdavis/Badges

Méthodes publiques

Méthode 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

Méthode 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 méthode

public BadgeController ( IRepositoryFactory repositoryFactory ) : System
repositoryFactory IRepositoryFactory
Résultat System

Browse() public méthode

Browse all badges in the system
public Browse ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

Create() public méthode

Create a new badge!
public Create ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

Earn() public méthode

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

Fulfillments() public méthode

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

Index() public méthode

public Index ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

MyBadges() public méthode

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

MyExperiences() public méthode

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
Résultat System.Web.Mvc.ActionResult

MyWork() public méthode

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)
Résultat System.Web.Mvc.ActionResult