public IActionResult Update(Category category) { FakeDataHelper.SetCategory(category); var newCategory = FakeDataHelper.GetCategory(category.UID); return(View(viewPath + "Edit", newCategory)); }
public IActionResult Activate(Guid uid) { var category = FakeDataHelper.GetCategory(uid); category.Activation = true; FakeDataHelper.SetCategory(category); return(RedirectToAction("Index")); }
public IActionResult Add(Category category) { FakeDataHelper.SetCategory(category); return(RedirectToAction("Index")); }