C# 클래스 Badges.Controllers.BadgeController

상속: ApplicationController
파일 보기 프로젝트 열기: ucdavis/Badges

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

BadgeController() 공개 메소드

public BadgeController ( IRepositoryFactory repositoryFactory ) : System
repositoryFactory IRepositoryFactory
리턴 System

Browse() 공개 메소드

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

Create() 공개 메소드

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

Earn() 공개 메소드

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

Fulfillments() 공개 메소드

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

Index() 공개 메소드

public Index ( ) : System.Web.Mvc.ActionResult
리턴 System.Web.Mvc.ActionResult

MyBadges() 공개 메소드

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

MyExperiences() 공개 메소드

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
리턴 System.Web.Mvc.ActionResult

MyWork() 공개 메소드

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)
리턴 System.Web.Mvc.ActionResult