Ejemplo n.º 1
0
        public ActionResult Details(int id)
        {
            var viewModel = new PetDetailViewModel()
            {
                Pet               = _unitOfWork.Pets.GetPet(id),
                Appointments      = _unitOfWork.Appointments.GetAppointmentWithPet(id),
                Attendances       = _unitOfWork.Attandences.GetAttendance(id),
                CountAppointments = _unitOfWork.Appointments.CountAppointments(id),
                CountAttendance   = _unitOfWork.Attandences.CountAttendances(id)
            };

            return(View("Details", viewModel));
        }
Ejemplo n.º 2
0
 public PetForm(PetModel petModel)
 {
     InitializeComponent();
     BindingContext = new PetDetailViewModel(petModel);
 }
Ejemplo n.º 3
0
 public PetDetailPage()
 {
     InitializeComponent();
     BindingContext = new PetDetailViewModel();
 }