Here Mudassar Ahmed Khan has explained with an example, how to use ContentResult in .Net Core.
ContentResult return type is used for returning Content i.e. String, XML string, etc. from Controller to View in ASP.Net Core MVC.
↧