Exemplo n.º 1
0
 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);
Exemplo n.º 2
0
        public ActionResult Edit(Guid id)
        {
            Groomer groomer = repository.GetById(id);

            return(View("Edit", groomer));
        }