Beispiel #1
0
        public ActionResult Validateuseremail(String email)
        {
            UserManageModel userobj  = new UserManageModel();
            String          Status   = "";
            List <UserInfo> userlist = userobj.fnUserModel(email: email, action: "VALIDATEMAIL");

            if (userlist.Count > 0)
            {
                Status = "true";
            }
            else
            {
                Status = "false";
            }
            return(Json(Status, JsonRequestBehavior.DenyGet));
        }
Beispiel #2
0
        public ActionResult Usesrregistration(String username, String password, String mobile, String email)
        {
            UserManageModel userobj  = new UserManageModel();
            String          Status   = "";
            List <UserInfo> userlist = userobj.fnUserModel(username: username, password: password, email: email, phoneno: mobile, action: "INSERT");

            if (userlist.Count > 0)
            {
                Status = "true";
            }
            else
            {
                Status = "false";
            }
            return(Json(Status, JsonRequestBehavior.DenyGet));
        }
Beispiel #3
0
        public ActionResult sign_exe(String username, String password)
        {
            UserManageModel userobj  = new UserManageModel();
            String          Status   = "";
            List <UserInfo> userlist = userobj.fnUserModel(username: username, password: password, action: "AUTHENTICATE");

            if (userlist.Count > 0)
            {
                Status = "Login Success";
                Session["UserInfo"] = userlist[0];
            }
            else
            {
                Status = "Login Failed";
            }
            return(Json(Status, JsonRequestBehavior.DenyGet));
        }