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