public ActionResult Index(CustomerViewModel cViewModel) { ViewBag.Title = "KPCL ERP :: Create, Update"; PaginationInfo pager = new PaginationInfo(); try { pager.IsPagingRequired = false; cViewModel.Nations = _nationMan.Get_Nations(ref pager); cViewModel.States = _stateMan.Get_States(cViewModel.Customer.Head_Office_Nation, ref pager); } catch (Exception ex) { cViewModel.Friendly_Message.Add(MessageStore.Get("SYS01")); Logger.Error("Customer Controller - Index " + ex.ToString()); } finally { pager = null; } return(View("Index", cViewModel)); }
public PartialViewResult Load_Vendor(VendorViewModel vViewModel) { PaginationInfo pager = new PaginationInfo(); pager.IsPagingRequired = false; vViewModel.Material_Category = _vendorMan.Get_Material_Category(); vViewModel.Nations = _nationMan.Get_Nations(ref pager); vViewModel.States = _stateMan.Get_States(Convert.ToInt32(vViewModel.Vendor.Head_Office_Nation), ref pager); return(PartialView("_Vendor", vViewModel)); }