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