public ActionResult GetPropertyFilter() { var listType = productTypeRepository.GetListForTree <object>(); return(Json(new { listType = listType }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetPropertyFilter() { var listType = productTypeRepository.GetListForTree <object>(); var listDistributor = distributorRepository.GetListForTree <object>(); var listManufacturer = manufacturerRepository.GetListForTree <object>(); var listStatus = productStatusRepository.GetListForTree <object>(); var listLabel = productLabelRepository.GetListForTree <object>(); return(Json(new { listType = listType, listDistributor = listDistributor, listManufacturer = listManufacturer, listStatus = listStatus, listLabel = listLabel }, JsonRequestBehavior.AllowGet)); }
public ActionResult EditForm(int?id) { var obj = new ProductGroupAttributeItem(); var listProductType = productTypeRepository.GetListForTree <object>(); if (id.HasValue) { obj = productGroupAttributeRepository.GetItemById <ProductGroupAttributeItem>(id.Value); } return(Json(new { data = obj, listProductType = listProductType }, JsonRequestBehavior.AllowGet)); }