This commit is contained in:
@@ -78,8 +78,8 @@ namespace raven_integration
|
||||
else
|
||||
{
|
||||
//Create it
|
||||
// a = await Util.PostAsync("FormCustom", await Util.GetTokenAsync("BizAdminFull"), d.ToString());
|
||||
// Util.ValidateDataReturnResponseOk(a);
|
||||
a = await Util.PostAsync("FormCustom", await Util.GetTokenAsync("BizAdminFull"), d.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
|
||||
|
||||
}
|
||||
|
||||
2
util.cs
2
util.cs
@@ -247,6 +247,8 @@ namespace raven_integration
|
||||
|
||||
public static void ValidateDataReturnResponseOk(ApiResponse a)
|
||||
{
|
||||
a.ObjectResponse.Should().NotBeNull("No response was found at all?! Nothing to validate");
|
||||
|
||||
var ErrorMessage = string.Empty;
|
||||
var ERR = a.ObjectResponse["error"];
|
||||
if (ERR != null)
|
||||
|
||||
Reference in New Issue
Block a user