Exemplo n.º 1
0
        public ActionResult AutoCompleteSearchSrStatus()
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("Auto complete Search SR Status").ToInputLogString());

            try
            {
                _srFacade = new ServiceRequestFacade();
                List <SRStatusEntity> result = _srFacade.AutoCompleteSearchSrStatus();
                return(Json(result.Select(r => new
                {
                    r.SRStatusId,
                    r.SRStatusName,
                })));
            }
            catch (Exception ex)
            {
                Logger.Info(_logMsg.Clear().SetPrefixMsg("Auto complete Search SR Status").ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }