|
@@ -113,7 +113,16 @@ namespace Bizgaze.CRM.Visitors.ActionProviders
|
113
|
113
|
{
|
114
|
114
|
var data1 = deserializeJEntriesObj[k];
|
115
|
115
|
var CapturePhotoData = data1 as IDictionary<string, dynamic>;
|
116
|
|
- var image = Convert.ChangeType(CapturePhotoData["image"].ToString(), typeof(string)).ToString();
|
|
116
|
+ var image = "";
|
|
117
|
+ if (CapturePhotoData.ContainsKey("image"))
|
|
118
|
+ {
|
|
119
|
+ image = Convert.ChangeType(CapturePhotoData["image"].ToString(), typeof(string)).ToString();
|
|
120
|
+ }
|
|
121
|
+ else
|
|
122
|
+ {
|
|
123
|
+ return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Take A Photo");
|
|
124
|
+ }
|
|
125
|
+ //if(image != )
|
117
|
126
|
|
118
|
127
|
//string[] Ocode = { };
|
119
|
128
|
//Ocode.Append(code);
|