Exemple #1
0
        public JsonpResult GetOptionList(string attr)
        {
            using (AttributeRepository aRepo = new AttributeRepository())
            {
                var theList = aRepo.GetOptionList(attr);

                return(new JsonpResult()
                {
                    Data = theList,
                    JsonRequestBehavior = JsonRequestBehavior.AllowGet
                });
            }
        }