How do I create a method in UserManager like:
public UserManager<ApplicationUser> UserManager { get; private set; }
public ActionResult SomeAction()
{
UserManager.MyVoid();
return View();
}
MyVoid it void will The desired her work
If you want to return an empty result, you can use the EmptyResult
class:
public ActionResult SomeAction()
{
UserManager.MyVoid();
return new EmptyResult();
}
See more on this question at Stackoverflow