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