Example #1
0
        public ActionResult Show()
        {
            StylistClientListViewModel stylistClientListViewModel = new StylistClientListViewModel();
            List <Specialty>           allSpecialties             = Specialty.GetAll();

            return(View());
        }
Example #2
0
        public ActionResult Edit(int clientId, int stylistId = 0)
        {
            StylistClientListViewModel stylistClientListViewModel = new StylistClientListViewModel();

            stylistClientListViewModel.Clients         = Client.FindStylistClientList(clientId);
            stylistClientListViewModel.SelectedStylist = Stylist.Find(stylistId);

            return(View(stylistClientListViewModel));
        }
Example #3
0
        public ActionResult Index(int id)
        {
            StylistClientListViewModel stylistClientListViewModel = new StylistClientListViewModel();

            stylistClientListViewModel.Clients = Client.FindStylistClientList(id);
            Stylist selectedStylist = Stylist.Find(id);

            stylistClientListViewModel.SelectedStylist = selectedStylist;
            return(View(stylistClientListViewModel));
        }
Example #4
0
        public ActionResult Show(int clientId)
        {
            StylistClientListViewModel stylistClientListViewModel = new StylistClientListViewModel();
            Client selectedClient = Client.Find(clientId);

            stylistClientListViewModel.Clients = new List <Client>();
            stylistClientListViewModel.Clients.Add(selectedClient);
            stylistClientListViewModel.SelectedStylist = Stylist.Find(selectedClient.StylistId);

            return(View(stylistClientListViewModel));
        }
Example #5
0
        public ActionResult Index(string name, int stylistId)
        {
            Client newClient = new Client(name, stylistId);

            newClient.Save();
            StylistClientListViewModel stylistClientListViewModel = new StylistClientListViewModel();

            stylistClientListViewModel.Clients         = Client.FindStylistClientList(stylistId);
            stylistClientListViewModel.SelectedStylist = Stylist.Find(stylistId);
            return(View(stylistClientListViewModel));
        }