Пример #1
0
        public ActionResult GetListTemplatesByTypeId(int typeId)
        {
            var mng   = new DocsManager();
            var items = mng.GetListTemplatesByType(typeId);

            return(Json(new { result = items.Select(x => new
                {
                    id = x.id,
                    path = x.path,
                    name = x.name,
                    typeId = x.typeID
                }
                                                    ) }));
        }