I need to write an action method which should respond to both Http get and Http post verbs in asp.net core MVC.I tried the following but it did not work and actually the acceptverbs attribute does not accept `HttpVerbs.Get` | `HttpVerbs.Post`) as it would do in **MVC 5**. So can someone help with this?

```
[AcceptVerbs(HttpVerbs.Get | HttpVerbs.Post)]
public IActionResult BatchGroupDetails(int id)
{
}

```