Пример #1
0
 public decimal TransactionsReceivedSum(En_Currency curr)
 {
     if (TransactionsSent == null || !TransactionsSent.Any())
     {
         return(0);
     }
     return(TransactionsReceived.Where(r => r.TransactionCurrency == curr).Sum(x => x.TransactionAmount));
 }
Пример #2
0
 public static decimal Intentions_ByUserID_CurrentMonth(long UserID, En_Currency currency = En_Currency.USD)
 {
     using (var exodusDB = new exodusEntities())
     {
         var intentionAmount = new ObjectParameter("IntentionAmount", 0);
         int rez             = exodusDB.stp_H2O_Intentions_ByUserID_CurrentMonth(UserID, currency.ToInt(), intentionAmount);
         return(Convert.ToDecimal(intentionAmount.Value));
     }
 }
Пример #3
0
 public API_Response <decimal> Intentions_ByUserID_CurrentMonth(long UserID, En_Currency currency = En_Currency.USD, [FromUri] string api_key = null)
 {
     return(InvokeAPI(() =>
     {
         if (!Global.Cache.CheckUserExists(UserID))
         {
             throw new UserNotFoundException();
         }
         //
         return _DL.H2O.Get.Intentions_ByUserID_CurrentMonth(UserID, currency);
     }, api_key));
 }