Answers for "exception handling in c# web api"

C#
0

exception handling in c# web api

catch (Exception ex)
            {
                _logger.LogError(ex.ToString());
                Response.AddApplicationError(ex.Message);
                return StatusCode(500, ex.Message);
            }
Posted by: Guest on February-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language