public ActionResult SearchVoucher(string errMsg) { if (Session["UserID"] != null) { ViewBag.JTrGrpId = new SelectList(_jTrGrpService.All().ToList(), "VType", "TypeDesc"); ViewBag.VchrNo = LoadDropDown.LoadVchrNoByVchrType("", _vchrMainService); ViewBag.Message = errMsg; return(View()); } else { return(RedirectToAction("SecUserLogin", "SecUserLogin")); } }
public ActionResult GetVchrNoByVchrType(string VchrType) { return(Json(LoadDropDown.LoadVchrNoByVchrType(VchrType, _vchrMainService), JsonRequestBehavior.AllowGet)); }