Beispiel #1
0
        public ActionResult Register([Bind(Include = "LastName, FirstName," +
                                                     "Email, Phone, PlainPassword, Apartment, Street, State, ZipCode")] NewPerson np)
        {
            int result = db.usp_Person(
                np.LastName,
                np.FirstName,
                np.Email,
                np.Phone,
                np.PlainPassword,
                np.Apartment,
                np.Street,
                np.State,
                np.Zipcode);

            if (result != -1)

            {
                return(RedirectToAction("Index"));
            }


            return(View());
        }