public ActionResult AutoCompleteSearchUserByUserIds(string keyword, int branchId, string userIds) { Logger.Info(_logMsg.Clear().SetPrefixMsg("Auto Complete Search User by UserIds").ToInputLogString()); try { _userFacade = new UserFacade(); List <UserEntity> result = _userFacade.AutoCompleteSearchUserByUserIds(keyword, branchId, userIds.Split(',').Select(Int32.Parse).ToList(), AutoCompleteMaxResult); return(Json(result.Select(r => new { r.UserId, r.FullName, }).Distinct().ToList())); } catch (Exception ex) { Logger.Info(_logMsg.Clear().SetPrefixMsg("Auto Complete Search User by UserIds").ToFailLogString()); return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(), this.ControllerContext.RouteData.Values["action"].ToString()))); } }