public Response <AppointmentResourceViewModel> AddAppointmentResource(AppointmentResourceViewModel appointmentResourceDetail)
        {
            List <AppointmentResourceViewModel> appointmentResourceDetails = new List <AppointmentResourceViewModel>();

            appointmentResourceDetails.Add(appointmentResourceDetail);
            return(appointmentRepository.AddAppointmentResource(appointmentResourceDetails));
        }
Exemplo n.º 2
0
        public JsonResult AddAppointmentResource(AppointmentResourceViewModel appointmentResourceDetail)
        {
            List <AppointmentResourceViewModel> appointmentResourceDetails = new List <AppointmentResourceViewModel>();

            appointmentResourceDetails.Add(appointmentResourceDetail);
            return(Json(appointmentRepository.AddAppointmentResource(appointmentResourceDetails)));
        }