Пример #1
0
        /// <summary>
        /// Get permission group's name match to cond for auto complete textbox.
        /// </summary>
        /// <param name="cond"></param>
        /// <returns></returns>
        public ActionResult MAS080_GetPermissionGroupName(string cond)
        {
            ObjectResultData res      = new ObjectResultData();
            List <string>    listName = new List <string>();

            try
            {
                IAutoCompleteHandler handler = ServiceContainer.GetService <IAutoCompleteHandler>() as IAutoCompleteHandler;
                listName = handler.GetPermissionGroupName(cond);
            }
            catch (Exception ex)
            {
                res.AddErrorMessage(ex);
            }

            res.ResultData = listName.ToArray();
            return(Json(res));
        }