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

Inheritance: Controller
Mostrar archivo Open project: JordanRift/Grassroots Class Usage Examples

Public Methods

Method 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 method

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
return System.Web.Mvc.JsonResult

CheckFacebookAccount() public method

public CheckFacebookAccount ( string facebookID ) : System.Web.Mvc.JsonResult
facebookID string
return System.Web.Mvc.JsonResult

CheckUrlSlug() public method

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
return System.Web.Mvc.JsonResult