|
@@ -19,7 +19,12 @@ namespace Logs_test.Controllers
|
19
|
19
|
Logger.Error<int>(ResultStatus.DBError, "my private data", "my public data");
|
20
|
20
|
Logger.Error<int>(ResultStatus.DBError, "my private/public data", "");
|
21
|
21
|
Logger.Error<int>(ResultStatus.DBError, "my private data");
|
22
|
|
- return "value";
|
|
22
|
+ var value = "value";
|
|
23
|
+ if (OpResult<int>.Ok(42))
|
|
24
|
+ value += " ok";
|
|
25
|
+ if (!OpResult<int>.Error(ResultStatus.InputError, "", ""))
|
|
26
|
+ value += " error";
|
|
27
|
+ return value;
|
23
|
28
|
}
|
24
|
29
|
|
25
|
30
|
// POST api/values
|