Exemple #1
0
        public IActionResult SaveCalendarData(AppointmentsDto data)
        {
            CommonResponse <int> commonResponse = new CommonResponse <int>();

            try
            {
                commonResponse.status = _appointmentService.AddUpdate(data, loginUserId).Result;
                if (commonResponse.status < 0)
                {
                    commonResponse.message = Helper.appointmentExists;
                }
                if (commonResponse.status == 1)
                {
                    commonResponse.message = Helper.appointmentUpdated;
                }
                if (commonResponse.status == 2)
                {
                    commonResponse.message = Helper.appointmentAdded;
                }

                if (commonResponse.status > 0)
                {
                    commonResponse.status = 1;
                }
            }
            catch (Exception ex)
            {
                commonResponse.message = ex.Message;
                commonResponse.status  = Helper.failure_code;
            }

            return(Ok(commonResponse));
        }
 public AppointmentsDto CreateAppointments(AppointmentsDto appointments, bool ignoreWarning)
 {
     throw new NotImplementedException();
 }
 public bool DoUnGroupeExams(AppointmentsDto apps)
 {
     throw new NotImplementedException();
 }
 public AppointmentsDto UpdatePendingAppointments(AppointmentsDto appointments, bool ignoreWarnings)
 {
     throw new NotImplementedException();
 }
 public void UpdateAppointmentPendingReason(AppointmentsDto appointments)
 {
     throw new NotImplementedException();
 }
 public AppointmentsDto RescheduleVisitAppointments(AppointmentsDto appointments, bool ignoreWarnings)
 {
     throw new NotImplementedException();
 }
 public AppointmentsDto AttachVisitAndResourceToAppointments(AppointmentsDto appointments, AppointmentResourceDto resource, VisitDto visit, bool ignoreWarnings)
 {
     throw new NotImplementedException();
 }
 public AppointmentsDto LoadVisitsBatch(AppointmentsDto appointmentId)
 {
     throw new NotImplementedException();
 }