public ActionResult AddProduct(Proizvodi proizvodi) { try { CRUDProducts.AddProduct(proizvodi); return(View("Index")); } catch (Exception) { return(View("Error")); } }
public ActionResult Update(Proizvodi proizvodi) { try { CRUDProducts.SaveChanges(proizvodi); return(View("Index")); } catch (Exception) { return(View("Error")); } }
public CheckBusineesRuleProduct() { crudProducts = new CRUDProducts(); }