示例#1
0
        public async Task <Result <List <RolesEnt> > > GetRoles()
        {
            Result <List <RolesEnt> > r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <List <RolesEnt> > .Run(delegate() { return(UserBus.GetRoles()); });
            });

            return(r);
        }