如何在UserManager中创建方法,如:
public UserManager<ApplicationUser> UserManager { get; private set; }
public ActionResult SomeAction()
{
UserManager.MyVoid();
return View();
}
MyVoid it void will the desired her work
答案 0 :(得分:4)
如果要返回空结果,可以使用EmptyResult
类:
public ActionResult SomeAction()
{
UserManager.MyVoid();
return new EmptyResult();
}