Beispiel #1
0
        //This action method is called by the remote attribute from the model to check if
        //the user is already registered by checking if the email already exists in db.
        public JsonResult ExistingUserEmail(string userEmail)
        {
            bool userEmailExists = userServices.ExistingUserEmail(userEmail);

            return(Json(!userEmailExists, JsonRequestBehavior.AllowGet));
        }