private Month GetCurrentSchedule(int doctorID) { Month currentMonth = new Month(); List<Schedule> currentSchedule = _repository.GetSchedulesToCurrentDoctor(doctorID).ToList(); currentMonth.GenerateDaysInfo(currentSchedule); return currentMonth; }
public ActionResult GetPet() { Month currentMonth = new Month(); currentMonth.GenerateDaysInfo(_repository.GetSchedulesToCurrentDoctor(CurrentUser.ID).ToList()); if (CurrentUser != null) { ViewBag.CurrentID = CurrentUser.ID; } else { ViewBag.CurrentID = 0; } List<PetView> allPets = GetCurrentPet(); return View(allPets); }