Exemplo n.º 1
0
        public void AddUserExpenseAbility(Int64 userId, string shortName, string expenseName, int month, int year, decimal expense, int type)
        {
            try
            {
                CRUDOperation          cRUDOperation      = new CRUDOperation();
                ExpenseDTO             expenseDTO         = GetExpenseChannelInfo(shortName, expenseName, expense);
                tbl_UserExpenseAbility userExpenseAbility = new tbl_UserExpenseAbility()
                {
                    UserID = userId,
                    Month  = month,
                    Year   = year,

                    Expense           = expense,
                    ExpenseFactorUnit = expenseDTO.ApproximateExpense,
                    Type = type
                };

                cRUDOperation.AddUserExpenseAbility(userExpenseAbility);
            }
            catch (Exception ex)
            {
            }
        }