예제 #1
0
        // GET: CharClass/Delete/5
        public ActionResult Delete(int id)
        {
            var service = new CharClassServices();

            var model = service.DeleteClass(id);

            return(View(model));
        }
예제 #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            var service = new CharClassServices();

            if (service.DeleteClass(id))
            {
                return(RedirectToAction("Index"));
            }

            return(RedirectToAction("Delete", new { id }));
        }