From the action stand of point, how can I differentiate an ajax request from a regular one.
puclic class GroupController : Controller
{
public ActionResult AddGroup()
{
if(//regular request...)
return view()
else //an ajax call
return Partial("GroupPartialView)
}
}
The idea is that If a user is being added to a group that doesn't exist, the group can be added using a dialog without leaving the the Manage user pages.
Thanks for helping.