C# Class Commencement.Controllers.AdminController

Inheritance: ApplicationController
Show file Open project: ucdavis/Commencement

Public Methods

Method Description
AddStudent ( string studentId ) : System.Web.Mvc.ActionResult
AdminController ( Guid>.IRepositoryWithTypedId studentRepository, string>.IRepositoryWithTypedId majorRepository, IStudentService studentService, IEmailService emailService, IMajorService majorService, ICeremonyService ceremonyService, IRegistrationService registrationService, IRegistrationPopulator registrationPopulator, IRepository registrationRepository, IErrorService errorService, IReportService reportService ) : System
Block ( System.Guid id ) : System.Web.Mvc.ActionResult
EditStudent ( System.Guid id ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult

GET: /Admin/ #1

Majors ( ) : System.Web.Mvc.ActionResult

I don't see that this is called from anywhere, not sure if it is needed or usefull... -JCS 2016/07/05

MoveMajor ( ) : System.Web.Mvc.ActionResult
RegisterForStudent ( System.Guid id ) : System.Web.Mvc.ActionResult
Registrations ( string studentid, string lastName, string firstName, string majorCode, int ceremonyId, string collegeCode ) : System.Web.Mvc.ActionResult
SearchStudent ( string studentId ) : System.Web.Mvc.RedirectToRouteResult
StudentDetails ( System.Guid id, bool registration ) : System.Web.Mvc.ActionResult

Students the details.

Students ( string studentid, string lastName, string firstName, string majorCode, string college ) : System.Web.Mvc.ActionResult

Students

TestException ( ) : System.Web.Mvc.ActionResult
ValidateMoveMajor ( string majorCode, int ceremonyId ) : System.Web.Mvc.JsonResult
VisaLetterDecide ( int id ) : System.Web.Mvc.ActionResult
VisaLetterDetails ( int id ) : System.Web.Mvc.ActionResult
VisaLetterPreviewPdf ( int id ) : System.Web.Mvc.ActionResult
VisaLetters ( System.DateTime startDate, System.DateTime endDate, string collegeCode, bool showAll = false ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
AddStudent ( string studentId, Student student ) : System.Web.Mvc.ActionResult
AdminLanding ( ) : System.Web.Mvc.ActionResult
Block ( System.Guid id, bool block, string reason ) : System.Web.Mvc.ActionResult
EditStudent ( System.Guid id, Student student ) : System.Web.Mvc.ActionResult
GetCeremonyForVisaLetter ( VisaLetter letter, bool useDefaultCeremony = false ) : Ceremony
MoveMajor ( string majorCode, int ceremonyId ) : System.Web.Mvc.ActionResult
RegisterForStudent ( System.Guid id, RegistrationPostModel registrationPostModel, bool supressEmail ) : System.Web.Mvc.ActionResult
ValidateMajorMove ( MajorCode majorCode, Ceremony destCeremony, Ceremony origCeremony, string &message ) : bool
VisaLetterDecide ( int id, AdminVisaLetterPostModel model ) : System.Web.Mvc.ActionResult

Method Details

AddStudent() public method

public AddStudent ( string studentId ) : System.Web.Mvc.ActionResult
studentId string
return System.Web.Mvc.ActionResult

AdminController() public method

public AdminController ( Guid>.IRepositoryWithTypedId studentRepository, string>.IRepositoryWithTypedId majorRepository, IStudentService studentService, IEmailService emailService, IMajorService majorService, ICeremonyService ceremonyService, IRegistrationService registrationService, IRegistrationPopulator registrationPopulator, IRepository registrationRepository, IErrorService errorService, IReportService reportService ) : System
studentRepository Guid>.IRepositoryWithTypedId
majorRepository string>.IRepositoryWithTypedId
studentService IStudentService
emailService IEmailService
majorService IMajorService
ceremonyService ICeremonyService
registrationService IRegistrationService
registrationPopulator IRegistrationPopulator
registrationRepository IRepository
errorService IErrorService
reportService IReportService
return System

Block() public method

public Block ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid
return System.Web.Mvc.ActionResult

EditStudent() public method

public EditStudent ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid
return System.Web.Mvc.ActionResult

Index() public method

GET: /Admin/ #1
public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Majors() public method

I don't see that this is called from anywhere, not sure if it is needed or usefull... -JCS 2016/07/05
public Majors ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

MoveMajor() public method

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

RegisterForStudent() public method

public RegisterForStudent ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid
return System.Web.Mvc.ActionResult

Registrations() public method

public Registrations ( string studentid, string lastName, string firstName, string majorCode, int ceremonyId, string collegeCode ) : System.Web.Mvc.ActionResult
studentid string
lastName string
firstName string
majorCode string
ceremonyId int
collegeCode string
return System.Web.Mvc.ActionResult

SearchStudent() public method

public SearchStudent ( string studentId ) : System.Web.Mvc.RedirectToRouteResult
studentId string
return System.Web.Mvc.RedirectToRouteResult

StudentDetails() public method

Students the details.
public StudentDetails ( System.Guid id, bool registration ) : System.Web.Mvc.ActionResult
id System.Guid The id.
registration bool This value is used in the pages, not the controller. Don't remove it.
return System.Web.Mvc.ActionResult

Students() public method

Students
public Students ( string studentid, string lastName, string firstName, string majorCode, string college ) : System.Web.Mvc.ActionResult
studentid string
lastName string
firstName string
majorCode string
college string
return System.Web.Mvc.ActionResult

TestException() public method

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

ValidateMoveMajor() public method

public ValidateMoveMajor ( string majorCode, int ceremonyId ) : System.Web.Mvc.JsonResult
majorCode string
ceremonyId int
return System.Web.Mvc.JsonResult

VisaLetterDecide() public method

public VisaLetterDecide ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

VisaLetterDetails() public method

public VisaLetterDetails ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

VisaLetterPreviewPdf() public method

public VisaLetterPreviewPdf ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

VisaLetters() public method

public VisaLetters ( System.DateTime startDate, System.DateTime endDate, string collegeCode, bool showAll = false ) : System.Web.Mvc.ActionResult
startDate System.DateTime
endDate System.DateTime
collegeCode string
showAll bool
return System.Web.Mvc.ActionResult