Ejemplo n.º 1
0
        public async Task <JsonResult> GetSearchAutocompResults(string reqData)
        {
            try
            {
                //get results from DB
                var result = await _companyRepo.GetSearchAutocompByInput(reqData);

                if (result != null)
                {
                    return(Json(result));
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(null);
        }