|
@@ -1,6 +1,7 @@
|
1
|
1
|
using System.Net;
|
2
|
2
|
using System.Net.Http;
|
3
|
3
|
using System.Web.Http;
|
|
4
|
+using iiie.Logs.DataAccess;
|
4
|
5
|
using iiie.Logs.DBO;
|
5
|
6
|
|
6
|
7
|
namespace iiie.WebApiUtils.BusinessManager
|
|
@@ -61,6 +62,7 @@ namespace iiie.WebApiUtils.BusinessManager
|
61
|
62
|
{
|
62
|
63
|
if (result.Status == ResultStatus.Success)
|
63
|
64
|
return result.Data;
|
|
65
|
+ result.Log();
|
64
|
66
|
var msg = request.CreateErrorResponse(ResultStatusToHttp(result.Status), OpResultToString(result));
|
65
|
67
|
throw new HttpResponseException(msg);
|
66
|
68
|
}
|