Ejemplo n.º 1
0
        public ActionResult SubmitClient(string fName, string sName, string eMail, string address, string city, string province, string zipCode, string UserName, string password, string confirm)
        {
            var x = sr.addClient(fName, sName, eMail, address, city, province, zipCode, UserName, password, confirm);

            if (x == -1)
            {
                return(this.Redirect(Url.Action("Index", "AddUser", new { status = Convert.ToString(-1) })));
            }
            else if (x == -2)
            {
                return(this.Redirect(Url.Action("Index", "AddUser", new { status = Convert.ToString(-2) })));
            }
            return(this.Redirect(@Url.Action("Index", "Home")));
        }