Ejemplo n.º 1
0
        public ActionResult EditAccount(mst_acc_head mst)
        {
            mst_acc_headMain stdMain = new mst_acc_headMain();

            stdMain.EditAccount(mst);

            return(RedirectToAction("AllAccountList"));
        }
Ejemplo n.º 2
0
        public ActionResult AddAccount(mst_acc_head mst)
        {
            mst_acc_headMain mstMain = new mst_acc_headMain();

            mstMain.AddHead(mst);

            return(RedirectToAction("AllAccountList"));
        }
Ejemplo n.º 3
0
        public ActionResult DeleteAccount(int id, FormCollection collection)
        {
            try
            {
                mst_acc_headMain stdMain = new mst_acc_headMain();

                stdMain.DeleteAccount(id);

                return(RedirectToAction("AllAccountList"));
            }
            catch
            {
                // ModelState.AddModelError(String.Empty, "Sections are created cannot delete");

                return(RedirectToAction("AllAccountList"));
            }
        }
Ejemplo n.º 4
0
        public ActionResult DeleteAccount(int id)
        {
            mst_acc_headMain stdMain = new mst_acc_headMain();

            return(View(stdMain.FindAccount(id)));
        }
Ejemplo n.º 5
0
        public ActionResult AllAccountList()
        {
            mst_acc_headMain stdMain = new mst_acc_headMain();

            return(View(stdMain.AllAccountList()));
        }