C# Class ITimeU.Controllers.AthleteController

Inheritance: Controller
Mostra file Open project: heinek/ITimeU Class Usage Examples

Public Methods

Method Description
Create ( string txtFirstName, string txtLastName, string txtEmail, string txtPostalAddress, string txtPostalCode, string txtCity, string txtPhoneNumber, string genderId, string birthdateId, string txtStartNumber, string clubId, string classId ) : System.Web.Mvc.ActionResult

Creates the specified TXT first name.

Delete ( int id, int clubid ) : System.Web.Mvc.ActionResult
DeleteAthlete ( string ddAthlete ) : System.Web.Mvc.ActionResult
Edit ( ) : System.Web.Mvc.ActionResult
EditAthleteDetails ( string txtathleteId, string txtfirstName, string txtlastName, string txtemail, string txtpostalAddress, string txtpostalCode, string txtcity, string txtphoneNumber, string txtgender, string txtbirthDate, string txtstartNumber, string txtathleteClass ) : System.Web.Mvc.ActionResult
EditFormFail ( ) : System.Web.Mvc.ActionResult
GetAllAthletes ( int clubId ) : System.Web.Mvc.ActionResult
GetAthleteDetails ( int athleteId ) : System.Web.Mvc.ActionResult
IsValidInput ( string firstname, string lastname, string email, string startnumber, string clubId = "1" ) : bool
Print ( int raceId ) : System.Web.Mvc.ActionResult

Prints the athletes.

PrintForClub ( int clubId ) : System.Web.Mvc.ActionResult

Prints the athletes.

ResetDeleteFormField ( ) : System.Web.Mvc.ActionResult
ResetEditFormField ( ) : System.Web.Mvc.ActionResult
ResetFormField ( ) : System.Web.Mvc.ActionResult
Setup ( ) : System.Web.Mvc.ActionResult
getGenderNameById ( int id ) : Gender
isValidEmail ( string inputEmail ) : bool

Private Methods

Method Description
Athletes ( int clubId ) : System.Web.Mvc.ActionResult
AthletesForRace ( int raceId ) : System.Web.Mvc.ActionResult
Index ( int raceId ) : System.Web.Mvc.ActionResult
getBirthDate ( ) : List
getBirthDateById ( int birthid ) : BirthDate
getGender ( ) : List
setEditViewData ( ) : void
setViewData ( ) : void

Method Details

Create() public method

Creates the specified TXT first name.
public Create ( string txtFirstName, string txtLastName, string txtEmail, string txtPostalAddress, string txtPostalCode, string txtCity, string txtPhoneNumber, string genderId, string birthdateId, string txtStartNumber, string clubId, string classId ) : System.Web.Mvc.ActionResult
txtFirstName string First name.
txtLastName string Last name.
txtEmail string The email.
txtPostalAddress string Postal address.
txtPostalCode string The postal code.
txtCity string The city.
txtPhoneNumber string The phone number.
genderId string The gender id.
birthdateId string The birthdate id.
txtStartNumber string The start number.
clubId string The club id.
classId string The class id.
return System.Web.Mvc.ActionResult

Delete() public method

public Delete ( int id, int clubid ) : System.Web.Mvc.ActionResult
id int
clubid int
return System.Web.Mvc.ActionResult

DeleteAthlete() public method

public DeleteAthlete ( string ddAthlete ) : System.Web.Mvc.ActionResult
ddAthlete string
return System.Web.Mvc.ActionResult

Edit() public method

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

EditAthleteDetails() public method

public EditAthleteDetails ( string txtathleteId, string txtfirstName, string txtlastName, string txtemail, string txtpostalAddress, string txtpostalCode, string txtcity, string txtphoneNumber, string txtgender, string txtbirthDate, string txtstartNumber, string txtathleteClass ) : System.Web.Mvc.ActionResult
txtathleteId string
txtfirstName string
txtlastName string
txtemail string
txtpostalAddress string
txtpostalCode string
txtcity string
txtphoneNumber string
txtgender string
txtbirthDate string
txtstartNumber string
txtathleteClass string
return System.Web.Mvc.ActionResult

EditFormFail() public method

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

GetAllAthletes() public method

public GetAllAthletes ( int clubId ) : System.Web.Mvc.ActionResult
clubId int
return System.Web.Mvc.ActionResult

GetAthleteDetails() public method

public GetAthleteDetails ( int athleteId ) : System.Web.Mvc.ActionResult
athleteId int
return System.Web.Mvc.ActionResult

IsValidInput() public method

public IsValidInput ( string firstname, string lastname, string email, string startnumber, string clubId = "1" ) : bool
firstname string
lastname string
email string
startnumber string
clubId string
return bool

Print() public method

Prints the athletes.
public Print ( int raceId ) : System.Web.Mvc.ActionResult
raceId int
return System.Web.Mvc.ActionResult

PrintForClub() public method

Prints the athletes.
public PrintForClub ( int clubId ) : System.Web.Mvc.ActionResult
clubId int
return System.Web.Mvc.ActionResult

ResetDeleteFormField() public method

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

ResetEditFormField() public method

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

ResetFormField() public method

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

Setup() public method

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

getGenderNameById() public method

public getGenderNameById ( int id ) : Gender
id int
return ITimeU.Models.Gender

isValidEmail() public static method

public static isValidEmail ( string inputEmail ) : bool
inputEmail string
return bool