Exemple #1
0
 public ActionResult Edit(int id, BLL.Model.SalesDTO Sales)
 {
     try
     {
         operations.UpdateSale(Sales);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Exemple #2
0
 public ActionResult Create(BLL.Model.SalesDTO sales)
 {
     try
     {
         operations.AddSale(sales);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }