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