// GET: /AssetPurchaseHeader/Create
        public ActionResult Create()
        {
            var organizationBranches = _organizationBranchManager.GetAll();

            ViewBag.OrganizationBranchID = new SelectList(organizationBranches, "OrganizationBranchID", "OrganizationBranchName");
            var vendor = _vendorManager.GetAll();

            ViewBag.VendorID = new SelectList(vendor, "VendorID", "VendorName");
            return(View());
        }
Example #2
0
        public JsonResult GetByAjax()
        {
            var organizationBranchs = organizationBranchManager.GetAll();

            return(new JsonResult {
                Data = organizationBranchs, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Example #3
0
        // GET: /AssetPurchase/Create
        public ActionResult Create()
        {
            var generalCategoryList = _generalCategoryManager.GetAll();

            ViewBag.generalCategoryID = new SelectList(generalCategoryList, "GeneralCategoryID", "GeneralCategoryName");

            var categoryList = _categoryManager.GetAll();

            ViewBag.CategoryID = new SelectList(categoryList, "CategoryID", "CategoryName");

            var subCategoryList = _subCategoryManager.GetAll();

            ViewBag.SubCategoryID = new SelectList(subCategoryList, "SubCategoryID", "SubCategoryName");

            var organizationBranchesList = _organizationBranchManager.GetAll();

            ViewBag.OrganizationBranchID = new SelectList(organizationBranchesList, "OrganizationBranchID", "OrganizationBranchName");

            var vendorList = _vendorManager.GetAll();

            ViewBag.VendorID = new SelectList(vendorList, "VendorID", "VendorName");
            return(View());
        }