コード例 #1
0
        public ActionResult SubmitEmployee(string fName, string sName, string eMail, string phone, string type, string UserName, string password, string confirm)
        {
            var x = sr.addEmployee(fName, sName, eMail, phone, Convert.ToInt32(type), UserName, password, confirm);

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