public IActionResult Create(CategorieViewModel categorieModel) { Categorie newCategorie = CategorieMapper.Categorie(categorieModel); categorieContainer.AddNew(newCategorie); return(RedirectToAction("Index", CategorieMapper.AllCategorieViewModels())); }
public IActionResult AddKlant(int klantId) { int orderId = GetSessionOrderId(); Order order = orderContainer.GetByID(orderId); order.AddKlant(klantId); return(RedirectToAction("Index", "Categories", CategorieMapper.AllCategorieViewModels())); }
public IActionResult Delete(int id) { categorieContainer.Delete(id); return(RedirectToAction("Index", CategorieMapper.AllCategorieViewModels())); }
public IActionResult Index() { return(View(CategorieMapper.AllCategorieViewModels())); }
public IActionResult EditOrder(int id) { SetSessionOrderId(id); return(RedirectToAction("Index", "Categories", CategorieMapper.AllCategorieViewModels())); }