コード例 #1
0
 private double CalculateExpense(Expense expense, int totalDays, int daysPresent)
 {
     if (expense.ExpenseType.Type == CategoryType.SplitEqual)
     {
         return expense.Amount / expense.ExpenseType.AffectedUsersIds.Count;
     }
     else
     {
         return (expense.Amount * daysPresent) / totalDays;
     }
 }
コード例 #2
0
 public void Save(Expense entity)
 {
     this.session.Store(entity);
 }
コード例 #3
0
 public void Remove(Expense entity)
 {
     throw new NotImplementedException();
 }