Example #1
0
        public ActionResult Addspecialty(int stylistId)
        {
            Stylist   stylist   = Stylist.Find(stylistId);
            Specialty specialty = Specialty.Find(Int32.Parse(Request.Form["specilty-id"]));

            stylist.Addspecialty(specialty);
            return(RedirectToAction("StylistDetails", new { id = stylistId }));
        }