public JsonResult DeleteDeviceData(string Id) { try { bool returnData = _facade.DeleteDevice(Id); return(Json(new ApiResult <bool>() { isSuccessful = true, Payload = true })); } catch (Exception) { return(Json(new ApiResult <bool>() { isSuccessful = false, Payload = false })); } }