Esempio n. 1
0
        public ActionResult AddStylists(int specialtyId, int stylistId)
        {
            Specialty specialty = Specialty.Find(specialtyId);
            Stylist   stylist   = Stylist.Find(stylistId);

            specialty.AddStylists(stylist);
            return(RedirectToAction("Show", new { id = specialtyId }));
        }
Esempio n. 2
0
        public ActionResult AddStylists(int id)
        {
            Specialty specialty = Specialty.Find(id);
            Stylist   stylist   = Stylist.Find(Int32.Parse(Request.Form["stylistId"]));

            specialty.AddStylists(stylist);
            return(RedirectToAction("Details"));
        }