add CapturePhotoData condition
This commit is contained in:
@@ -113,7 +113,16 @@ namespace Bizgaze.CRM.Visitors.ActionProviders
|
||||
{
|
||||
var data1 = deserializeJEntriesObj[k];
|
||||
var CapturePhotoData = data1 as IDictionary<string, dynamic>;
|
||||
var image = Convert.ChangeType(CapturePhotoData["image"].ToString(), typeof(string)).ToString();
|
||||
var image = "";
|
||||
if (CapturePhotoData.ContainsKey("image"))
|
||||
{
|
||||
image = Convert.ChangeType(CapturePhotoData["image"].ToString(), typeof(string)).ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Take A Photo");
|
||||
}
|
||||
//if(image != )
|
||||
|
||||
//string[] Ocode = { };
|
||||
//Ocode.Append(code);
|
||||
|
||||
Reference in New Issue
Block a user