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 })); }
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")); }