Beispiel #1
0
        public ActionResult AddDeposit(int contributorId, decimal amount, DateTime date)
        {
            SimchaDb sdb = new SimchaDb(Properties.Settings.Default.ConStr);

            sdb.AddDeposit(contributorId, amount, date);
            return(Redirect("/Contributor/ContributorIndex"));
        }
        public ActionResult NewDeposit(Deposit deposit)
        {
            SimchaDb db = new SimchaDb(Properties.Settings.Default.ConStr);

            db.AddDeposit(deposit);
            return(Redirect("/home/Contributors"));
        }
Beispiel #3
0
        public ActionResult AddContributor(string Name, string PhoneNumber, decimal Balance, bool AlwaysInclude, DateTime Date)
        {
            SimchaDb sdb = new SimchaDb(Properties.Settings.Default.ConStr);
            int      x   = sdb.AddContributor(Name, PhoneNumber, AlwaysInclude, Date);

            sdb.AddDeposit(x, Balance, Date);

            return(Redirect("/Contributor/ContributorIndex"));
        }