public ActionResult EditAccount(mst_acc_head mst) { mst_acc_headMain stdMain = new mst_acc_headMain(); stdMain.EditAccount(mst); return(RedirectToAction("AllAccountList")); }
public ActionResult AddAccount(mst_acc_head mst) { mst_acc_headMain mstMain = new mst_acc_headMain(); mstMain.AddHead(mst); return(RedirectToAction("AllAccountList")); }
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")); } }
public ActionResult DeleteAccount(int id) { mst_acc_headMain stdMain = new mst_acc_headMain(); return(View(stdMain.FindAccount(id))); }
public ActionResult AllAccountList() { mst_acc_headMain stdMain = new mst_acc_headMain(); return(View(stdMain.AllAccountList())); }