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
                   ));
        }
Esempio n. 3
0
        public async Task <IActionResult> Search(string term)
        {
            var customertags = (await _customerTagService.GetCustomerTagsByName(term)).Select(x => x.Name);

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

            return(Json(customertags));
        }