update call waiter

This commit is contained in:
Aung Myo
2017-12-04 19:23:37 +06:30
parent 0c0ba0858a
commit 3354733e41
10 changed files with 123 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
class Api::CallWaitersController < ActionController::API
#List all active customers by name
def index
@table_id = params[:dining_id]
@time = params[:time]
@table = DiningFacility.find(@table_id)
CallWaiterJob.perform_later(@table,@time)
end
end