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>()); } }
public List <Account> GetAccountsWithoutMe(int accountId) { return(accountDal.GetList(x => x.Id != accountId)); }
public List <Account> GetAll() { return(_accountDal.GetList(x => x.isActive == true)); }
public List <Account> GetAccountsByCustomer(Customer customer) { return(_accountDal.GetList(a => a.Owner == customer.Username)); }
public int TotalCount() { return(accountDal.GetList().Count); }