public function categoryUpdateSave()
 {
     $validation_rule = array('category_name' => array('required', 'max:100'), 'category_description' => 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
         $cat_id = Input::get('category_id');
         return Redirect::to('/editCategory/' . $cat_id)->withErrors($validation);
     } else {
         $category_name = Input::get('category_name');
         $category_description = Input::get('category_description');
         $category_id = Input::get('category_id');
         // Insert data into database
         ItemConfiguration::UpdateCategory($category_id, $category_name, $category_description);
         return Redirect::to('/addCategory')->with('add_success_massege', 'Category Updated successfully.');
     }
 }