C# Class JordanRift.Grassroots.Web.Controllers.ValidationController

Inheritance: Controller
Afficher le fichier Open project: JordanRift/Grassroots Class Usage Examples

Méthodes publiques

Méthode Description
CheckEmail ( string email, int userProfileID = -1 ) : System.Web.Mvc.JsonResult

Remote validation method to receive ajax call to confirm email address will be unique.

CheckFacebookAccount ( string facebookID ) : System.Web.Mvc.JsonResult
CheckUrlSlug ( string urlSlug, int campaignID = -1 ) : System.Web.Mvc.JsonResult

Remote validation method to receive ajax call to confirm that url slug will be unique.

Method Details

CheckEmail() public méthode

Remote validation method to receive ajax call to confirm email address will be unique.
public CheckEmail ( string email, int userProfileID = -1 ) : System.Web.Mvc.JsonResult
email string email address to check against
userProfileID int user profile ID to check against in the database
Résultat System.Web.Mvc.JsonResult

CheckFacebookAccount() public méthode

public CheckFacebookAccount ( string facebookID ) : System.Web.Mvc.JsonResult
facebookID string
Résultat System.Web.Mvc.JsonResult

CheckUrlSlug() public méthode

Remote validation method to receive ajax call to confirm that url slug will be unique.
public CheckUrlSlug ( string urlSlug, int campaignID = -1 ) : System.Web.Mvc.JsonResult
urlSlug string url slug to check against
campaignID int campaign ID to check against in the database
Résultat System.Web.Mvc.JsonResult