Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

map all responses to a custom model?

$
0
0

hi in asp.net web API I have been used message handlers to map all API responses to a custom class for example:

    public class ResponseModel

    {

        public object Result { get; set; }

        public int ResultCode{ get; set; }

        public string Version { get; set; }

    }

what is the equivalent in aspnet core?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>