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

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