public bool CreateExpense(Expense entity, bool save = true) { try { // Call ExpenseRepository to assign User ID to Expense _expenseRepository.CreateExpense(entity); if (save) { _expenseRepository.Save(); } return(true); } catch (SqlException e) { Logger.Instance.Error(e); return(false); } catch (Exception ex) { Logger.Instance.Error(ex); return(false); } }