Esempio n. 1
0
                    public static int UpdateAccount(VM_Account account)
                    {
                        using (var exodusDB = new exodusEntities())
                        {
                            var result = new ObjectParameter("result", 0);

                            exodusDB.stp_User_Account_Update(
                                accountValue: account.AccountDetails,
                                accountID: account.AccountID,
                                result: result
                                );

                            return(Convert.ToInt32(result.Value));
                        }
                    }
Esempio n. 2
0
                    public static long Account(VM_Account account)
                    {
                        using (var exodusDB = new exodusEntities())
                        {
                            ObjectParameter accountID = new ObjectParameter("accountID", 0);

                            exodusDB.stp_User_Account_Add(
                                userID: account.fk_UserID,
                                accountTypeID: account.fk_AccountTypeID,
                                accountValue: account.AccountDetails,
                                accountID: accountID);

                            return(Convert.ToInt64(accountID.Value));
                        }
                    }