Exemplo n.º 1
0
        //Delete Exam
        public ActionResult Delete(int id)
        {
            if (id > 0)
            {
                bool isDeleted = _examManager.Deleted(id);
                if (isDeleted)
                {
                    //return View("Index");
                    return(RedirectToAction("Index"));
                }

                return(RedirectToAction("Index"));
            }

            return(View("Index"));
        }