public function upload($id_client)
 {
     $input = \Input::all();
     $rez = \Database\Actions::make()->model('\\Credite\\Nomenclatoare\\ClientDocuments')->data(['id_client' => $id_client, 'id_user' => @$this->current_user->id])->upload($input['file_data'], \Config::get('uploads.client-documents'));
     return $rez;
     // \Response::json(['message' => "uraa"]);
 }
 public function upload($id_filter, $type)
 {
     $input = \Input::all();
     $rez = \Database\Actions::make()->model('\\Credite\\Banci\\DocumenteNecesare')->data(['id_filter' => $id_filter, 'id_user' => $this->current_user->id, 'type' => $this->types[$type]['column']])->upload($input['file_data'], \Config::get('uploads.' . $this->types[$type]['column']));
     return $rez;
 }
 /**
 	Declanseaza la nivelul DB actiunea de insert/update/delete
 	**/
 public function do_action($form, $input)
 {
     return \Database\Actions::make()->model($this->model($input['model']))->data($input['data'])->action($input['action'])->record_id($input['record_id'])->form($form)->execute();
 }