Ejemplo n.º 1
0
        public ActionResult registerAdmin(string name, string mail, string pass)
        {
            var admin = new WebApplication1.Models.Customer()
            {
                accuontName = name, passWord = Encrypt.GetMD5(pass), Email = mail, idCusAuthe = 1
            };
            func func = new func();

            if (func.RegisterAdmin(admin) == true)
            {
                return(Content("Success"));
            }
            else
            {
                return(Content("Fail"));
            }
        }