Ejemplo n.º 1
0
        public ActionResult HasConfiguration(string modulename)
        {
            try
            {
                Operator user = OperatorProvider.Provider.Current();
                var      data = manyPowerCheckbll.GetList(user.OrganizeCode, modulename);

                if (data.Count > 0)
                {
                    return(Content("true"));
                }
                else
                {
                    return(Content("false"));
                }
            }
            catch (Exception ex)
            {
                return(Content("false"));
            }
        }
Ejemplo n.º 2
0
        public ActionResult ConfigurationList(string modulename)
        {
            try
            {
                Operator user = OperatorProvider.Provider.Current();
                var      data = manyPowerCheckbll.GetList(user.OrganizeCode, modulename);

                return(ToJsonResult(data));
            }
            catch (Exception ex)
            {
                return(Content("false"));
            }
        }