public AccountModel[] Get([FromUri] string option, int id) { switch (option) { case "current": //id is ClientOrgID return(ApiUtility.GetCurrentAccounts(new ClientModel() { ClientOrgID = id })); case "available": //id is ClientOrgID return(ApiUtility.GetAvailableAccounts(new ClientModel() { ClientOrgID = id })); case "all": //id is OrgID return(ApiUtility.GetAllAccounts(new ClientModel() { ClientOrgID = id })); } return(new AccountModel[] { }); }