public ActionResult AutoCompleteSearchAfsAsset(string keyword) { Logger.Info(_logMsg.Clear().SetPrefixMsg("Auto complete Search AFS Asset").ToInputLogString()); try { _srFacade = new ServiceRequestFacade(); List <AfsAssetEntity> result = _srFacade.AutoCompleteSearchAfsAsset(keyword, AutoCompleteMaxResult); return(Json(result.Select(r => new { r.AssetId, r.AssetNo, }))); } catch (Exception ex) { Logger.Info(_logMsg.Clear().SetPrefixMsg("Auto complete Search AFS Asset").ToFailLogString()); return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(), this.ControllerContext.RouteData.Values["action"].ToString()))); } }