Example #1
0
        /// <summary>
        /// 创建菜单
        /// </summary>
        /// <param name="createMenusWrapper"></param>
        /// <returns></returns>
        public static CreateMenus Create(CreateMenusWrapperModel createMenusWrapper)
        {
            var create   = new CreateMenus(createMenusWrapper);
            var response = create.RequestAsModel <CreateMenus>();

            return(response);
        }
Example #2
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);
        }
Example #3
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>());
        }
Example #4
0
        /// <summary>
        /// 创建菜单
        /// </summary>
        /// <param name="menus">菜单JSON数据</param>
        /// <returns></returns>
        public static CreateMenus Create(string menus)
        {
            var menu = new CreateMenus(menus);

            return(menu.RequestAsModel <CreateMenus>());
        }
Example #5
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>());
        }
Example #6
0
        /// <summary>
        /// 创建菜单
        /// </summary>
        /// <param name="menus">菜单JSON数据</param>
        /// <returns></returns>
        public static CreateMenus Create(Dictionary <string, object> menus)
        {
            var menu = new CreateMenus(menus);

            return(menu.RequestAsModel <CreateMenus>());
        }