return new EmptyResult() VS return NULL
You can return null. MVC will detect that and return an EmptyResult. MSDN: EmptyResult represents a result that doesn’t do anything, like a controller action returning null Source code of MVC. public class EmptyResult : ActionResult { private static readonly EmptyResult _singleton = new EmptyResult(); internal static EmptyResult Instance { get { return _singleton; } … Read more