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); }