From 2361e29610235c99696ea07ea40ce768947c054a Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 19 Sep 2022 16:27:45 -1000 Subject: [PATCH] update sample (#57) --- .../problem-details-service/Controllers/ValuesController.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fundamentals/middleware/problem-details-service/Controllers/ValuesController.cs b/fundamentals/middleware/problem-details-service/Controllers/ValuesController.cs index 41d29df..efcd00b 100644 --- a/fundamentals/middleware/problem-details-service/Controllers/ValuesController.cs +++ b/fundamentals/middleware/problem-details-service/Controllers/ValuesController.cs @@ -12,7 +12,8 @@ public class ValuesController : ControllerBase { if (Denominator == 0) { - var errorType = new MathErrorFeature { MathError = MathErrorType.DivisionByZeroError }; + var errorType = new MathErrorFeature { MathError = + MathErrorType.DivisionByZeroError }; HttpContext.Features.Set(errorType); return BadRequest(); } @@ -27,7 +28,8 @@ public class ValuesController : ControllerBase { if (radicand < 0) { - var errorType = new MathErrorFeature { MathError = MathErrorType.NegativeRadicandError }; + var errorType = new MathErrorFeature { MathError = + MathErrorType.NegativeRadicandError }; HttpContext.Features.Set(errorType); return BadRequest(); }