/**
  * Finds the DtDefsheetDevices model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $dt_defsheets_id
  * @param integer $devices_id
  * @return DtDefsheetDevices the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($dt_defsheets_id, $devices_id)
 {
     if (($model = DtDefsheetDevices::findOne(['dt_defsheets_id' => $dt_defsheets_id, 'devices_id' => $devices_id])) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }