public virtual ActionResult Delete(WorkType workType)
        {
            try
            {
                OpenErpConnection.GetConnection().DeleteEntity(workType);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
 //
 // GET: /WorkCategory/Delete/5
 public virtual ActionResult Delete(int id)
 {
     var workType = new WorkType {ID = id};
     return View(OpenErpConnection.GetConnection().GetEntity<WorkType>(c => c.ID == workType.ID));
 }