示例#1
0
        public ActionResult Create(Client client)
        {
            client.SetNextClientNumber();
            if (ModelState.IsValid)
            {
                db.Clients.Add(client);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(client);
        }
示例#2
0
 public ActionResult Edit(Client client)
 {
     if (ModelState.IsValid)
     {
         db.Entry(client).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(client);
 }
示例#3
0
 public frmTransaction(Client client, BankAccount account)
 {
     InitializeComponent();
     this.client = client;
     this.account = account;
 }
示例#4
0
 public frmHistory(Client client, BankAccount account)
 {
     InitializeComponent();
     this.client = client;
     this.account = account;
 }