Example #1
0
        public ActionResult Update(int stylistId, int clientId, string name, string phoneNumber)
        {
            ClientClass client = ClientClass.Find(clientId);

            client.Edit(name, phoneNumber);
            Dictionary <string, object> model = new Dictionary <string, object>();
            StylistClass stylist = StylistClass.Find(stylistId);

            model.Add("stylist", stylist);
            model.Add("client", client);
            return(View("Show", model));
        }