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()); } }
public async Task <IHttpActionResult> AddAccount(int hhId, string name, decimal balance) { await db.AddAccount(hhId, name, balance); return(Ok()); }
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))); }