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()); }
/// <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