2022-09-08 08:04:32 -07:00

90 lines
1.9 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Chruch.Net.Areas.admin.Controllers
{
public class DashboardController : Controller
{
// GET: admin/Dashboard
public ActionResult Index()
{
return View();
}
// GET: admin/Dashboard/Details/5
public ActionResult Details(int id)
{
return View();
}
// GET: admin/Dashboard/Create
public ActionResult Create()
{
return View();
}
// POST: admin/Dashboard/Create
[HttpPost]
public ActionResult Create(FormCollection collection)
{
try
{
// TODO: Add insert logic here
return RedirectToAction("Index");
}
catch
{
return View();
}
}
// GET: admin/Dashboard/Edit/5
public ActionResult Edit(int id)
{
return View();
}
// POST: admin/Dashboard/Edit/5
[HttpPost]
public ActionResult Edit(int id, FormCollection collection)
{
try
{
// TODO: Add update logic here
return RedirectToAction("Index");
}
catch
{
return View();
}
}
// GET: admin/Dashboard/Delete/5
public ActionResult Delete(int id)
{
return View();
}
// POST: admin/Dashboard/Delete/5
[HttpPost]
public ActionResult Delete(int id, FormCollection collection)
{
try
{
// TODO: Add delete logic here
return RedirectToAction("Index");
}
catch
{
return View();
}
}
}
}