public bool DeleteById(int id) { try { bool isSuccess; using (var vehicleRepo = new VehicleRepository()) { isSuccess = vehicleRepo.DeleteByID(id); } return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("CarRental.BusinessLogic.Concretes::Delete:Error occured.", ex); } }