예제 #1
0
 public ActionResult AddProduct(Proizvodi proizvodi)
 {
     try
     {
         CRUDProducts.AddProduct(proizvodi);
         return(View("Index"));
     }
     catch (Exception)
     {
         return(View("Error"));
     }
 }
예제 #2
0
 public ActionResult Update(Proizvodi proizvodi)
 {
     try
     {
         CRUDProducts.SaveChanges(proizvodi);
         return(View("Index"));
     }
     catch (Exception)
     {
         return(View("Error"));
     }
 }
예제 #3
0
 public CheckBusineesRuleProduct()
 {
     crudProducts = new CRUDProducts();
 }