Question: <http://www.wikihow.com/Add-Advertisements-to-Your-Android-Applications-Using-Admob>

or

<https://developers.google.com/mobile-ads-sdk/docs/?hl=en_US>

Both links follow different methods.

Answer: 
You have couple of options. 

* If customerids and agentids are mutually exclusive, then first you can try find customer if found return customer view otherwise find agent and if found return agent view
* Have two separate input fields, one for customer id and another one for agent id and change the index action to accept two parameters and depending on which parameter is provided choose the correct view.
You cannot call two action using in one form this way, you can handle this in one action like this:

```
public ActionResult Index(string ServiceProviderID)
    {
        var value = Convert.ToInt32(ServiceProviderID);

        var Query = (from u in db.collections
                 join pr in db.outstanding_master on u.CustomerID equals pr.LoanID
                     where pr.ServiceProviderID == value
                 select u);

        if(Query != null)
             return View(Query);

        else
        {
       var result = (from u in db.collections

                     where u.AgentID == ServiceProviderID
                     select u);
        return View(result); 
        }

    }

```