public function executeUpdateServiceValue()
 {
     /** @var $wpdb  wpdb */
     global $wpdb;
     $form = new AB_ServiceForm();
     $form->bind($this->getPostParameters());
     $service = $form->save();
     if ($this->getParameter('update_staff', false)) {
         if ($this->getParameter('price')) {
             $wpdb->update(AB_StaffService::getTableName(), array('price' => $this->getParameter('price')), array('service_id' => $this->getParameter('id')));
         }
         if ($this->getParameter('capacity')) {
             $wpdb->update(AB_StaffService::getTableName(), array('capacity' => $this->getParameter('capacity')), array('service_id' => $this->getParameter('id')));
         }
     }
     // Register string for translate in WPML.
     do_action('wpml_register_single_string', 'bookly', 'service_' . $service->id, $service->title);
 }
 public function executeUpdateServiceValue()
 {
     $form = new AB_ServiceForm();
     $form->bind($this->getPostParameters());
     $form->save();
 }