Esempio n. 1
0
        //Get olayı için
        public ActionResult Add()
        {
            ProductVM vm = new ProductVM();

            vm.AltKategoriler = _subcategoryService.GetActive();

            return(View(vm));
        }
Esempio n. 2
0
        public ActionResult Add()
        {
            AddArticleVM model = new AddArticleVM()
            {
                Categories    = _categoryService.GetActive(),
                SubCategories = _subCategoryService.GetActive()
            };

            return(View(model));
        }
Esempio n. 3
0
        public ActionResult Add()
        {
            AddArticleVM model = new AddArticleVM()
            {
                Categories    = _categoryService.GetActive(),
                AppUsers      = _appUserService.GetDefault(x => x.Role != Role.Member),
                SubCategories = _subCategoryService.GetActive()
            };

            return(View(model));
        }
 public ActionResult Index()
 {
     try
     {
         return(View(subcat.GetActive()));
     }
     catch (Exception)
     {
         return(View());
     }
 }
Esempio n. 5
0
 // GET: Admin/Product
 public ActionResult Index()
 {
     ViewBag.SubCategories = subCategoryService.GetActive();
     return(View(productService.GetActive()));
 }
Esempio n. 6
0
        public ActionResult Add()
        {
            TempData["SubCategories"] = subCategoryService.GetActive();

            return(View());
        }
Esempio n. 7
0
 public ActionResult Create()
 {
     ViewBag.SubCategoryID = new SelectList(subCategory.GetActive(), "ID", "Name");
     return(View());
 }
 // GET: Admin/AppUser
 public ActionResult List()
 {
     ViewBag.Categories = cs.GetActive();
     return(View(SubCategoryService.GetActive()));
 }
 public ActionResult Insert()
 {
     ViewBag.SubCategoryID = new SelectList(ss.GetActive(), "ID", "SubCategoryName");
     return(View());
 }
Esempio n. 10
0
 public ActionResult Index()
 {
     return(View(sub.GetActive()));
 }
Esempio n. 11
0
        public ActionResult List()
        {
            List <SubCategory> model = _subCategoryService.GetActive();

            return(View(model));
        }
Esempio n. 12
0
 // GET: Admin/SubCategory
 public ActionResult Index()
 {
     return(View(subCategoryService.GetActive()));
 }