public ActionResult PaymentModeCreateEdit(payment_mode paymentmode) { result = paymentModeUtil.CreateEditPaymentMode(paymentmode); ViewBag.Title = paymentmode == null ? "Payment Mode Create" : "Payment Mode Edit"; ViewBag.action_name = STUtil.GetListAllActionByController(""); return(Json(result)); }
public ActionResult PaymentModeIndex(string id) { STUtil.SetSessionValue(UserInfo.pageTitle.ToString(), "Payment Mode"); payment_mode c = new payment_mode(); if (id != null && id != "") { c = db.payment_mode.Find(Convert.ToInt32(id)); } return(View(c)); }