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

            vm.AltKategoriler = _subcategoryService.GetActive();

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

            return(View(model));
        }
Beispiel #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());
     }
 }
Beispiel #5
0
 // GET: Admin/Product
 public ActionResult Index()
 {
     ViewBag.SubCategories = subCategoryService.GetActive();
     return(View(productService.GetActive()));
 }
Beispiel #6
0
        public ActionResult Add()
        {
            TempData["SubCategories"] = subCategoryService.GetActive();

            return(View());
        }
Beispiel #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());
 }
 public ActionResult Index()
 {
     return(View(sub.GetActive()));
 }
Beispiel #11
0
        public ActionResult List()
        {
            List <SubCategory> model = _subCategoryService.GetActive();

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