Example #1
0
        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));
        }
Example #2
0
 public ActionResult Index()
 {
     return(View(_petsRepo.GetPetsByOwner(ApplicationHelper.LoggedUser.Id)));
 }