Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MVC template to use new Problem helpers in error handler #8538

DamianEdwards opened this Issue Mar 14, 2019 · 1 comment


Copy link

DamianEdwards commented Mar 14, 2019

Relies on #8537

Update error handler action method to use new problem helper method #8537:

public ActionResult<ProblemDetails> HandleError([FromHeader] string accept)
    if (accept.Contains("text/html"))
        return View("Error", new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
    return Problem();

This comment has been minimized.

Copy link

mkArtakMSFT commented Mar 21, 2019

Moving this to a future milestone so that we can address this after we'll finalize the templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.