Example #1
0
 public async Task <IEnumerable <Loan> > GetLoansByStatus(LoanStatus status)
 {
     return(await _context.FromQueryAsync <Loan>(new QueryOperationConfig()
     {
         IndexName = "by_status",
         Filter = new QueryFilter("status", QueryOperator.Equal, status.ToString())
     }, Cfg())
            .GetRemainingAsync());
 }
Example #2
0
 /// <summary>
 /// Returns a string that represents the current object.
 /// </summary>
 /// <returns>
 /// A string that represents the current object.
 /// </returns>
 public override string ToString()
 {
     return(string.Join(";",
                        Counter,
                        LoanStatus.ToString(),
                        LoanAmount,
                        RepaidPrincipal
                        ));
 }     // ToString