Exemplo n.º 1
0
 public IEnumerable <Entities.Account> GetList(string keyword, out int totalRows, int?userType = 0, int?pageIndex = 1, int?pageSize = 15)
 {
     try
     {
         return(_accountDal.GetList(keyword, out totalRows, userType.Value, pageIndex, pageSize));
     }
     catch (Exception ex)
     {
         Logger.WriteLog(Logger.LogType.Error, ex.ToString());
         totalRows = 0;
         return(new List <Entities.Account>());
     }
 }
Exemplo n.º 2
0
 public List <Account> GetAccountsWithoutMe(int accountId)
 {
     return(accountDal.GetList(x => x.Id != accountId));
 }
Exemplo n.º 3
0
 public List <Account> GetAll()
 {
     return(_accountDal.GetList(x => x.isActive == true));
 }
Exemplo n.º 4
0
 public List <Account> GetAccountsByCustomer(Customer customer)
 {
     return(_accountDal.GetList(a => a.Owner == customer.Username));
 }
Exemplo n.º 5
0
 public int TotalCount()
 {
     return(accountDal.GetList().Count);
 }