示例#1
0
        /// <summary>
        /// 创建菜单
        /// </summary>
        /// <param name="createMenusWrapper"></param>
        /// <returns></returns>
        public async static Task <CreateMenus> CreateAsync(CreateMenusWrapperModel createMenusWrapper)
        {
            var create   = new CreateMenus(createMenusWrapper);
            var response = await create.RequestAsModelAsync <CreateMenus>();

            return(response);
        }
示例#2
0
        /// <summary>
        /// 创建菜单
        /// </summary>
        /// <param name="menus">菜单JSON数据</param>
        /// <returns></returns>
        public async static Task <CreateMenus> CreateAsync(string menus)
        {
            var menu = new CreateMenus(menus);

            return(await menu.RequestAsModelAsync <CreateMenus>());
        }
示例#3
0
        /// <summary>
        /// 创建菜单
        /// </summary>
        /// <param name="menus">菜单JSON数据</param>
        /// <returns></returns>
        public async static Task <CreateMenus> CreateAsync(Dictionary <string, object> menus)
        {
            var menu = new CreateMenus(menus);

            return(await menu.RequestAsModelAsync <CreateMenus>());
        }