Esempio n. 1
0
 public string[] getAdminUserNames()
 {
     try
     {
         using (var db = new AprManagerContext())
         {
             return((from x in db.EmailMasters
                     where x.ADMIN == true
                     select x.Address).ToArray());
         }
     } catch (Exception ex)
     {
         Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
     }
     return(new string[] { "" });
 }
Esempio n. 2
0
 public AprService(AprManagerContext _context = null)
 {
     context = (_context != null) ? _context : new AprManagerContext();
 }