public ActionResult AddFeeAdjustment(int oid, int pid)
        {
            var m = new OrgMemberTransactionModel {
                OrgId = oid, PeopleId = pid, AdjustFee = true
            };

            return(View(m));
        }
        public ActionResult AddTransaction(int oid, int pid)
        {
            var m = new OrgMemberTransactionModel {
                OrgId = oid, PeopleId = pid
            };

            return(View(m));
        }
예제 #3
0
 public ActionResult PostTransaction(OrgMemberTransactionModel m)
 {
     m.PostTransaction(ModelState);
     if (!ModelState.IsValid)
     {
         return(View("AddTransaction", m));
     }
     return(View("AddTransactionDone", m));
 }
 public ActionResult PostTransaction(int oid, int pid, OrgMemberTransactionModel m)
 {
     if (m.TransactionSummary != null && (m.Payment ?? 0) == 0)
     {
         ModelState.AddModelError("Payment", "must have non zero value");
     }
     if (m.TransactionSummary == null && (m.Amount ?? 0) == 0)
     {
         ModelState.AddModelError("Amount", "Initial Fee Must be > 0");
     }
     if (!ModelState.IsValid)
     {
         return(View("AddTransaction", m));
     }
     m.PostTransaction();
     return(View("AddTransactionDone", m));
 }
예제 #5
0
 public ActionResult AddFeeAdjustment(OrgMemberTransactionModel m)
 {
     m.AdjustFee = true;
     return(View(m));
 }
예제 #6
0
 public ActionResult AddTransaction(OrgMemberTransactionModel m)
 {
     return(View(m));
 }