Exemplo n.º 1
0
        public ActionResult Sign(string name, string user, string age, string mail, string pass)
        {
            add cc = new add();

            cc.Registro(name, user, age, mail, pass);
            ViewBag.Msg1 = "¡Hola, registrado con éxito!";
            return(View());
        }
Exemplo n.º 2
0
        public ActionResult Dash(string user, string money, string card, string desc, HttpPostedFileBase avatar)
        {
            int          mone   = int.Parse(money);
            var          length = avatar.InputStream.Length;
            MemoryStream target = new MemoryStream();

            avatar.InputStream.CopyTo(target);
            byte[] data = target.ToArray();
            add    cc   = new add();

            cc.RegistroFeed(user, mone, card, desc, data);
            return(View("Feed"));
        }