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:



Last posts

12/01/19 - Hybrid Cloud

12/01/19 - Private cloud

12/01/19 - Public Cloud

21/12/18 - Accessing Raspberry PI 3 B

16/10/18 - ICloud installation into Outlook 365 isn't configured to have a default profile