Example #1
0
 public IEnumerable <Accounts> GetAccounts()
 {
     try
     {
         using (AppApaymentsEntities accountEntities = new AppApaymentsEntities())
         {
             return(accountEntities.Accounts.ToList());
         }
     }
     catch (Exception e)
     {
         throw new Exception(string.Format("No es posible obtener informacion de las cuentas en este momento, intente de nuevo!"), e);
     }
 }