Ejemplo n.º 1
0
        public ActionResult Subscribe(int id)
        {
            BalUser bal = new BalUser();

            bal.Delete(id);
            return(View());
        }
Ejemplo n.º 2
0
        public ActionResult CreateUser(FormCollection user)
        {
            BalUser bal = new BalUser();

            bal.Is_Active = true;
            bal.Year      = DateTime.Now.Year.ToString();
            bal.Name      = user["Name"];
            bal.Phone     = user["Phone"];
            bal.Address   = user["Address"];
            bal.Username  = user["Username"];
            bal.Password  = user["Password"];
            bal.Email     = user["Email"];
            bal.Insert(bal);
            return(RedirectToAction("Admin"));
        }
Ejemplo n.º 3
0
        public ActionResult Admin()
        {
            BalUser bal = new BalUser();

            return(View(bal.List()));
        }