Twillio task route
1) How can I manage different instruction in single callback URL using asp.net mvc Library?
Ex :
--> Task created using enqueue. I have placed dequeue instruction in Assignment callback url but how can I manage once task is created and reservation is created. How can accept reservation using reservation Id and place a call to twilio client ?
public ActionResult Assignment()
{
var response = new
{
instruction = "dequeue" ,
post_work_activity_sid = Singleton.Instance.PostWorkActivitySid
};
return new JsonResult() { Data = response };
}
Any suggestions will be useful
Thanks