Esempio n. 1
0
 public ActionResult Create(Client client)
 {
     _db.Clients.Add(client);
     _db.SaveChanges();
     return(RedirectToAction("Index", "Home"));
 }
Esempio n. 2
0
 public ActionResult Create(Stylist stylist)
 {
     _db.Stylists.Add(stylist);
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }