public ActionResult AddForClient(int serviceId, double price, string serviceName) { var model = new AppointmentViewModel() { Appointment = new AppointmentModel { ServiceId = serviceId, EstimativePrice = price, ServiceName = serviceName }, Medics = _usersRepo.GetMedicsForAppointment(), Pets = _petsRepo.GetPetsByOwner(ApplicationHelper.LoggedUser.Id) }; return(View(model)); }
public ActionResult Index() { return(View(_petsRepo.GetPetsByOwner(ApplicationHelper.LoggedUser.Id))); }