public IActionResult Search(string term)
 {
     if (!_permissionService.Authorize(StandardPermissionProvider.ManageCustomers))
         return AccessDeniedView();
     var customertags = _customerTagService.GetCustomerTagsByName(term).Select(x => x.Name);
     return Json(customertags);
 }
        public ActionResult Search(string term)
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageCustomers))
            {
                return(AccessDeniedView());
            }
            var customertags = _customerTagService.GetCustomerTagsByName(term).Select(x => x.Name);

            return(Json
                   (
                       customertags,
                       JsonRequestBehavior.AllowGet
                   ));
        }
Example #3
0
        public async Task <IActionResult> Search(string term)
        {
            var customertags = (await _customerTagService.GetCustomerTagsByName(term)).Select(x => x.Name);

            return(Json(customertags));
        }
Example #4
0
        public IActionResult Search(string term)
        {
            var customertags = _customerTagService.GetCustomerTagsByName(term).Select(x => x.Name);

            return(Json(customertags));
        }