[HttpPost]
public ActionResult Save(Master model, FormCollection form)
{
if (form != null)
{
if (int.Parse(form["btnFlag"]) == 2)
{
Process(model);
}
else if (int.Parse(form["btnFlag"]) == 3)
{
Reject(model);
}
}
return RedirectToAction("Index");
}
This is the method I am testing. I would like to know if the Process() method is called or the Reject() is called?