Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature add service #29

Open
wants to merge 19 commits into
base: dev
Choose a base branch
from
Open

Feature add service #29

wants to merge 19 commits into from

Conversation

Wil-JsDev
Copy link
Owner

Pull Request

Description

This PR introduces several improvements and new features, including service implementations, DTO modifications, and validation enhancements.

Key Changes:

  • Appointments:
    • Added validation method for appointment dates.
    • Updated confirmation and cancellation method signatures.
    • Removed unnecessary properties from DTOs.
    • Deleted appointment status.
  • Services:
    • Added a method to get services by company ID.
    • Updated discount and price filtering methods.
    • Removed PenaltyAmount and unnecessary properties.
  • Schedule:
    • Updated holiday names.
    • Enforced non-null WeekDay.
    • Renamed isHoliday parameter.
  • General Refactoring:
    • Deleted rating property.
    • Renamed entityCreateDto for the create method in the generic service.
    • Removed unnecessary properties from multiple DTOs.
  • New Features:
    • Added GenerateConfirmationService.
    • Registered application and persistence layer services in the DI container.
    • Integrated Serilog for logging.
  • Other Changes:
    • Added IFormFile Image and removed the status property.

Wil-JsDev added 19 commits March 8, 2025 12:02
- Removed AppointmentStatus and CancellationReason from CreateAppointmentDTos
- Removed ConfirmationCode and CancellationReason from AppointmentDTos
- Removed CancellationReason from UpdateAppoinmentDTos

These changes simplify the DTOs by removing redundant or unnecessary information in appointment creation and updates.
… enum

- Standardized holiday names for consistency
- Ensured WeekDay enum is always non-null
…rom DTOs

- Removed PenaltyAmount from CreateServiceDTos, ServicesDTos, and UpdateServiceDTos
- Removed RegisteredCompanyId, CreatedAt, and UpdateAt from ServiceFilterDTos

These changes simplify the DTOs by eliminating redundant or unnecessary properties.
- Implemented a method to validate appointment dates
- Ensures appointments meet required date constraints
- RegisteredCompaniesService
- AppointmentService
- ServicesService
- ReviewService
- SchedulesService
- Configure TrimlyContext with SQL Server connection
- Register repositories for appointments, registered companies, reviews, schedules, and services
- Add generic repository registration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant