public ActionResult AutoCompleteSearchUserWithJobOnHand(string keyword, int branchId) { Logger.Info(_logMsg.Clear().SetPrefixMsg("Auto complete Search User").ToInputLogString()); try { _srFacade = new ServiceRequestFacade(); List <UserEntity> result = _srFacade.AutoCompleteSearchUserWithJobOnHand(keyword, branchId, AutoCompleteMaxResult); return(Json(result.Select(r => new { r.UserId, UserDisplayName = r.FullName + " (" + (r.JobOnHand ?? 0) + ")", }))); } catch (Exception ex) { Logger.Info(_logMsg.Clear().SetPrefixMsg("Auto complete Search User").ToFailLogString()); return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(), this.ControllerContext.RouteData.Values["action"].ToString()))); } }