// GET: /DetailCategory/Create public ActionResult Create() { var gCategories = _generalCategoryManager.GetAll(); ViewBag.generalCategoryID = new SelectList(gCategories, "GeneralCategoryID", "GeneralCategoryName"); var subCategories = _subCategoryManager.GetAll(); ViewBag.SubCategoryID = new SelectList(subCategories, "SubCategoryID", "SubCategoryName"); return(View()); }
public ActionResult Save() { List <GeneralCatagory> generalCatagories = generalCategoryManager.GetAll(); ViewBag.GeneralcategoryList = generalCatagories; List <CategorySetup> categorySetups = categorySetupManager.GetAll(); ViewBag.CategorySetupList = categorySetups; List <SubCategory> subCategories = subCategoryManager.GetAll(); ViewBag.SubCategoryList = subCategories; return(View()); }
public JsonResult GetByAjax() { var var = _Manager.GetAll(); return(new JsonResult { Data = var, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
// 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()); }
// GET: /SubCategory/ public ActionResult Index() { var subcategories = _subCategoryManager.GetAll(); return(View(subcategories.ToList())); }
public IList <SubCategory> GetAll() { var subCategory = _manager.GetAll(); return(subCategory.ToList()); }