//select*method for Index page with search type and search string
        public List <vessel_owner_ref> getAllOwners(string SearchType, string SearchText)
        {
            List <vessel_owner_ref> Owners = null;

            try
            {
                if (SearchType.Equals("1"))
                {
                    Owners = OwnersService.getOwnerUsingOwnerName(SearchText);
                }
                else if (SearchType.Equals("2"))
                {
                    Owners = OwnersService.getOwnerUsingOwnerNIC(SearchText);
                }
                else if (SearchType.Equals("3"))
                {
                    Owners = OwnersService.getOwnerUsingOwnerTel(SearchText);
                }
                else
                {
                    Owners = OwnersService.getAllOwnersDB();    //if url parameter contains user-modified value this will return all owners
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(Owners);
        }