예제 #1
0
        public async Task <IEnumerable <object> > CompanyLookup(string search = null)
        {
            if (string.IsNullOrEmpty(search))
            {
                return(new List <object>());
            }

            var repo = new CompanyRepository(context);
            var term = search.ToLower();

            return(await repo.CompanyLookup(term));
        }