public ActionResult Show() { StylistClientListViewModel stylistClientListViewModel = new StylistClientListViewModel(); List <Specialty> allSpecialties = Specialty.GetAll(); return(View()); }
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)); }
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)); }
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)); }
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)); }