Ejemplo n.º 1
0
        public ActionResult DeleteTerm(int id, FormCollection collection)
        {
            mst_termMain stdMain = new mst_termMain();

            try
            {
                stdMain.DeleteTerm(id);

                return(RedirectToAction("AllTermList"));
            }
            catch
            {
                ModelState.AddModelError(String.Empty, "Term is assigned cannot delete");

                return(View(stdMain.FindTerm(id)));
            }
        }
Ejemplo n.º 2
0
        public ActionResult DeleteTerm(int id)
        {
            mst_termMain stdMain = new mst_termMain();

            return(View(stdMain.FindTerm(id)));
        }
Ejemplo n.º 3
0
        public ActionResult EditTerm(int?id)
        {
            mst_termMain stdMain = new mst_termMain();

            return(View(stdMain.FindTerm(id)));
        }