Blog Post

How to return empty result in mvc

Sunday, January 3, 2016 1:11 PM

How to return empty result in MVC

I have been surprised how many questions has been on stack overflow about this. And therefore I have decided to create a blog post about this.


Short answer is:


return EmptyResult();


Full example code:


 public ActionResult Empty()
        return new EmptyResult();

More information about empty result can be found on:

Error pages
Links and tools