diff --git a/src/Extensions/ApplicationDependencies.cs b/src/Extensions/ApplicationDependencies.cs index f3bf92d0..c628fc38 100644 --- a/src/Extensions/ApplicationDependencies.cs +++ b/src/Extensions/ApplicationDependencies.cs @@ -20,7 +20,6 @@ public static IServiceCollection AddServices(this IServiceCollection services) .AddScoped() .AddScoped() .AddScoped() - .AddScoped() .AddScoped() .AddScoped() .AddScoped() diff --git a/src/Features/Appointments/AppointmentService.cs b/src/Features/Appointments/AppointmentService.cs index fd371b72..23b6d61c 100644 --- a/src/Features/Appointments/AppointmentService.cs +++ b/src/Features/Appointments/AppointmentService.cs @@ -3,15 +3,12 @@ public class AppointmentService : IAppointmentService { private readonly IAppointmentRepository _appointmentRepository; - private readonly IAppointmentInformationSendingService _sendingService; private readonly IDateTimeProvider _dateTimeProvider; public AppointmentService(IAppointmentRepository appointmentRepository, - IAppointmentInformationSendingService sendingService, IDateTimeProvider dateTimeProvider) { _appointmentRepository = appointmentRepository; - _sendingService = sendingService; _dateTimeProvider = dateTimeProvider; } @@ -23,7 +20,6 @@ public async Task> CreateAppointmentAsync(AppointmentInsertDto var appointment = appointmentInsertDto.MapToAppointment(); _appointmentRepository.Insert(appointment); await _appointmentRepository.SaveAsync(); - await _sendingService.SendAppointmentInformationAsync(appointment.Id, appointmentInsertDto); return new Response { Data = new DtoBase { Id = appointment.Id }, diff --git a/src/Features/Appointments/Notification/AppointmentInformationSendingService.cs b/src/Features/Appointments/Notification/AppointmentInformationSendingService.cs index 0e128102..147d7926 100644 --- a/src/Features/Appointments/Notification/AppointmentInformationSendingService.cs +++ b/src/Features/Appointments/Notification/AppointmentInformationSendingService.cs @@ -17,7 +17,7 @@ public AppointmentInformationSendingService(IAppointmentRepository appointmentRe public async Task SendAppointmentInformationAsync(int appointmentId, AppointmentInsertDto appointmentInsertDto) { - // La consulta se ejecuta en caso que se realice el agendamiento de forma manual. + // The query is executed in case the scheduling of appointments is done manually by the secretary. appointmentInsertDto.RangeToPay ??= await _treatmentRepository.GetTreatmentWithRangeToPayAsync(appointmentInsertDto.GeneralTreatmentId); var businessName = EnvReader.Instance[AppSettings.BusinessName]; var info = await _appointmentRepository.GetAppointmentInformationAsync(appointmentId);