using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Web.Areas.Admin.Controllers
{
    public class sdController : Controller
    {
        // GET: sdController
        public ActionResult Index()
        {
            return View();
        }

        // GET: sdController/Details/5
        public ActionResult Details(int id)
        {
            return View();
        }

        // GET: sdController/Create
        public ActionResult Create()
        {
            return View();
        }

        // POST: sdController/Create
        [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Create(IFormCollection collection)
        {
            try
            {
                return RedirectToAction(nameof(Index));
            }
            catch
            {
                return View();
            }
        }

        // GET: sdController/Edit/5
        public ActionResult Edit(int id)
        {
            return View();
        }

        // POST: sdController/Edit/5
        [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Edit(int id, IFormCollection collection)
        {
            try
            {
                return RedirectToAction(nameof(Index));
            }
            catch
            {
                return View();
            }
        }

        // GET: sdController/Delete/5
        public ActionResult Delete(int id)
        {
            return View();
        }

        // POST: sdController/Delete/5
        [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Delete(int id, IFormCollection collection)
        {
            try
            {
                return RedirectToAction(nameof(Index));
            }
            catch
            {
                return View();
            }
        }
    }
}
