Exemplo n.º 1
0
        // POST: Settings/Edit
        public ActionResult Edit(Setting stng)
        {
            var sp = new SettingProcess();

            sp.Edit(stng);
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        // GET: Settings/Edit
        public ActionResult Edit(int id)
        {
            var sp   = new SettingProcess();
            var stng = sp.Find(id);

            return(View(stng));
        }
Exemplo n.º 3
0
        // POST: Settings/Create
        public ActionResult Create(Setting stng)
        {
            var sp = new SettingProcess();

            sp.Insert(stng);
            return(RedirectToAction("Index"));
        }
Exemplo n.º 4
0
        // GET: Settings/Delete
        public ActionResult Delete(int id)
        {
            var sp = new SettingProcess();

            sp.Delete(id);
            return(RedirectToAction("Index"));
        }
Exemplo n.º 5
0
        // GET: Settings/Setting
        public ActionResult Index()
        {
            var sp    = new SettingProcess();
            var lista = sp.SelectList();

            return(View(lista));
        }