Beispiel #1
0
        internal void SaveTransferCash(double value, DateTime date, object accountOut, object accountIn)
        {
            var accOut = (from a in GetAccountList()
                          where a.Name.Equals(((Account)accountOut).Name)
                          select a).FirstOrDefault();

            var accIn = (from a in GetAccountList()
                         where a.Name.Equals(((Account)accountIn).Name)
                         select a).FirstOrDefault();

            database.AddTransferCash(value, date, accOut, accIn);
        }