public function supplierUpdateSave()
 {
     $validation_rule = array('supplier_name' => array('required', 'max:100'), 'supplier_address' => array('required', 'max:500'));
     $validation = Validator::make(Input::all(), $validation_rule);
     if ($validation->fails()) {
         // If validation failed then returned to the serviseForm with error massege
         $supplier_id = Input::get('Supplier_ID');
         return Redirect::to('/editSupplier/' . $supplier_id)->withErrors($validation);
     } else {
         $supplier_id = Input::get('Supplier_ID');
         $supplier_name = Input::get('supplier_name');
         $supplier_address = Input::get('supplier_address');
         // Insert data into database
         ItemConfiguration::UpdateSupplier($supplier_id, $supplier_name, $supplier_address);
         return Redirect::to('/addSupplier')->with('add_success_massege', 'Supplier  Updated successfully.');
     }
 }