DeleteTolerance() public method

public DeleteTolerance ( int id ) : bool
id int
return bool
        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;
        }