Example #1
0
 public ActionResult Delete(int id)
 {
     try
     {
         SoldProductLogic.DeleteSoldProduct(id);
         return(Json(new { IsSucceeded = true }));
     }
     catch
     {
         return(Json(new { IsSucceeded = false }));
     }
 }
 public ActionResult Delete(SoldProductViewModel model)
 {
     SoldProductLogic.DeleteSoldProduct(model.Id);
     return(RedirectToAction("Index"));
 }