public BaseController() { ApiErrorProvider = new ApiErrorProvider(); }
public IActionResult CreateErrorResponse(HttpStatusCode httpStatusCode, string errorCode, string message) => CreateErrorResponse(httpStatusCode, ApiErrorProvider.GetErrorResponse(errorCode, message));
public BaseController(IConfiguration configuration) { ApiErrorProvider = new ApiErrorProvider(configuration); }