public function ProductUpdateSave()
 {
     $validation_rule = array('product_name' => array('required', 'max:100'), 'product_description' => array('required', 'max:500'), 'cat_id' => array('required'), 'brand_id' => array('required'));
     $validation = Validator::make(Input::all(), $validation_rule);
     if ($validation->fails()) {
         // If validation failed then returned to the serviseForm with error massege
         $product_id = Input::get('Product_id');
         return Redirect::to('/editProduct/' . $product_id)->withErrors($validation);
     } else {
         $product_name = Input::get('product_name');
         $product_description = Input::get('product_description');
         $cat_id = Input::get('cat_id');
         $brand_id = Input::get('brand_id');
         // Insert data into database
         $product_id = Input::get('Product_id');
         ItemConfiguration::editProductSave($product_id, $product_name, $product_description, $cat_id, $brand_id);
         return Redirect::to('/addProducts')->with('add_success_massege', 'Product Edited successfully.');
     }
 }