public virtual ActionResult Delete(Supply supply)
 {
     try
     {
         OpenErpConnection.GetConnection().DeleteEntity(supply);
         return RedirectToAction("Index");
     }
     catch (Exception ex)
     {
         supply.ExceptionMessage = ex.Message;
         return View(supply);
     }
 }
 //
 // GET: /Supply/Delete/5
 public virtual ActionResult Delete(int id)
 {
     var supply = new Supply {ID = id};
     return View(OpenErpConnection.GetConnection().GetEntity<Supply>(c => c.ID == supply.ID));
 }