Пример #1
0
        public ActionResult ClientDetails(int id)
        {
            Dictionary <string, object> model = new Dictionary <string, object>();
            Client selectedClient             = Client.Find(id);

            List <Stylist> clientStylists = selectedClient.GetStylists();
            List <Stylist> allStylists    = Stylist.GetAll();

            model.Add("client", selectedClient);
            model.Add("clientStylists", clientStylists);
            model.Add("allStylists", allStylists);

            return(View(model));
        }