Example #1
0
        public IActionResult Update(Category category)
        {
            FakeDataHelper.SetCategory(category);
            var newCategory = FakeDataHelper.GetCategory(category.UID);

            return(View(viewPath + "Edit", newCategory));
        }
Example #2
0
        public IActionResult Activate(Guid uid)
        {
            var category = FakeDataHelper.GetCategory(uid);

            category.Activation = true;
            FakeDataHelper.SetCategory(category);
            return(RedirectToAction("Index"));
        }