public PartialViewResult GroomerCalendar(string id) { if (!String.IsNullOrEmpty(id)) { Guid groomerID = Guid.Parse(id); Groomer groomer = groomerRepository.GetById(groomerID); ViewBag.groomerName = groomer.Name; Appointment appointment = Session["Appointment"] as Appointment ?? new Appointment(); appointment.GroomerID = groomerID; appointment.Groomer = groomer; Session["Appointment"] = appointment; ViewBag.calendar = GetAvailabilityCalendarView(groomer); return(PartialView("GetGroomerCalendarPartial")); } return(default);
public ActionResult Edit(Guid id) { Groomer groomer = repository.GetById(id); return(View("Edit", groomer)); }