Esempio n. 1
0
 public int count()
 {
     using (SecurityDAO dao = new SecurityDAO())
     {
         return dao.ListAllRoles().Count;
     }
 }
Esempio n. 2
0
 public IList<Role> list(int first, int offset)
 {
     using(SecurityDAO dao = new SecurityDAO())
     {
         var list = (from r in dao.ListAllRoles() select r).Skip(first).Take(offset).ToList();
         return list;
     }
 }