public ActionResult Subscribe(int id) { BalUser bal = new BalUser(); bal.Delete(id); return(View()); }
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")); }
public ActionResult Admin() { BalUser bal = new BalUser(); return(View(bal.List())); }