Beispiel #1
0
        public async Task <IHttpActionResult> AddAccount(int hhId, string name, decimal balance)
        {
            try
            {
                await db.AddAccount(hhId, name, balance);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(BadRequest());
            }
        }
Beispiel #2
0
        public async Task <IHttpActionResult> AddAccount(int hhId, string name, decimal balance)
        {
            await db.AddAccount(hhId, name, balance);

            return(Ok());
        }
Beispiel #3
0
 public IHttpActionResult AddAccount(int hhId, string name, decimal balance, decimal recbalance, string userId, bool isDeleted)
 {
     return(Ok(db.AddAccount(hhId, name, balance, recbalance, userId, isDeleted)));
 }
 public async Task <IHttpActionResult> AddAccountAsync(int householdId, string accountName, int accountType, decimal startingBalance, decimal lowBalanceLevel, decimal currentBalance)
 {
     return(Ok(await db.AddAccount(householdId, accountName, accountType, startingBalance, lowBalanceLevel, currentBalance)));
 }