/**
  * Lists all Applyjobs models.
  * @return mixed
  */
 public function actionViewallnumbers()
 {
     $data = Yii::$app->request->post();
     $numbers = Grabcornrecords::findOne(['id' => $data['grabcornrecordid']]);
     if ($numbers) {
         return array('flag' => 1, 'numbers' => $numbers['numbers'], 'msg' => 'success');
     } else {
         return array('flag' => 0, 'msg' => 'fail');
     }
 }
 /**
  * Finds the Grabcornrecords model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return Grabcornrecords the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = Grabcornrecords::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }