Exemplo n.º 1
0
 public int GetCount(string word)
 {
     return(_context
            .PaymentToCompany
            .Where(PaymentToCompanySpecs.GetPaymentToCompany(word))
            .Count());
 }
Exemplo n.º 2
0
 public int GetCountCompany(int id)
 {
     return(_context
            .PaymentToCompany
            .Where(PaymentToCompanySpecs.GetPaymentToCompany(id))
            .Count());
 }
Exemplo n.º 3
0
 public List <PaymentToCompany> GetByRangeCompany(int skip, int take, int id)
 {
     return(_context.PaymentToCompany
            .Where(PaymentToCompanySpecs.GetPaymentToCompany(id))
            .Include("Company")
            .OrderBy(x => x.DatePayment)
            .Skip((skip - 1) * take).Take(take).ToList());
 }