// GET: VM_DrNote public ActionResult VM_DrNote() { if (Session["UserID"] != null) { ViewBag.Reason = LoadDropDown.LoadDrNoteReason(); ViewBag.NoteList = GetDrNote(); ViewBag.DrNoteNo = GetNewDrNote(); var sysSet = _sysSetService.All().ToList().FirstOrDefault(); ViewBag.MaintVAT = sysSet.MaintVAT; Session["MaintVAT"] = sysSet.MaintVAT; return(View()); } else { return(RedirectToAction("SecUserLogin", "SecUserLogin")); } }