public IHttpActionResult DeleteTolerance(int id) { IHttpActionResult ret = null; TolerancesTolerancesModel tol = new TolerancesTolerancesModel(); bool del = tol.DeleteTolerance(id); if (del == true) { ret = Ok("Pavyko"); } else { ret = Ok("failed"); } return ret; }