Add Identity configuration, DTOs and Mappers #1

Merged
m.bengashier merged 6 commits from Feat/Identity into main 2025-02-09 08:19:35 +00:00
Owner

-Configured Identity using a custom User model to manage authentication and authorization, to be used in the project.

  • Added multiple DTOs (Data Transfer Objects).
  • Added multiple Mappers ( manual mapping).
  • Updated AppDbContext and User model to fully integrate with Identity framework for user management.
    -Added relationships between models.
    Note : no migration yet
-Configured Identity using a custom User model to manage authentication and authorization, to be used in the project. - Added multiple DTOs (Data Transfer Objects). - Added multiple Mappers ( manual mapping). - Updated AppDbContext and User model to fully integrate with Identity framework for user management. -Added relationships between models. Note : no migration yet
m.bengashier added 1 commit 2025-01-20 15:18:14 +00:00
-Configured Identity using a custom User model to manage authentication and authorization, to be used in the project.
- Added multiple DTOs (Data Transfer Objects).
- Added multiple Mappers ( manual mapping).
- Updated AppDbContext and User model to fully integrate with Identity framework for user management.
-Added relationships between models.
Note : no migration yet
i.elaradi reviewed 2025-01-26 11:11:25 +00:00
@@ -0,0 +10,4 @@
public bool IsPublished { get; set; }
public string AuthorId { get; set; }
public ICollection<QuestionDto> Questions { get; set; }
public ICollection<ResponseDto> Responses { get; set; }
First-time contributor

remove the responses property

remove the responses property
i.elaradi reviewed 2025-01-26 11:11:48 +00:00
@@ -0,0 +6,4 @@
public string? Email { get; set; }
public string? Username { get; set; }
public string? Fullname { get; set; }
public ICollection<SurveyDto> AuthoredSurveys { get; set; }
First-time contributor

remove the authored surveys property from the dto

remove the authored surveys property from the dto
m.bengashier added 1 commit 2025-01-26 11:28:51 +00:00
removed the authored surveys property
removed the responses property
removed CreateAnswerDto&AnswerDto
m.bengashier added 1 commit 2025-02-01 22:06:49 +00:00
Added- AnalyticsController ResponsesController SurveyController UserController
i.elaradi reviewed 2025-02-02 09:35:07 +00:00
@@ -0,0 +23,4 @@
{
Question = a.Question,
AnswerText = a.AnswerText
}).ToList();
First-time contributor

what's the point of the answers variable here?

what's the point of the answers variable here?
m.bengashier added 1 commit 2025-02-02 11:26:56 +00:00
m.bengashier added 1 commit 2025-02-02 12:29:22 +00:00
m.bengashier added 1 commit 2025-02-07 14:41:29 +00:00
Refactored DTOs to use AutoMapper instead of manual mapping and made some additional improvements and fixes.
Added : GetAllSurveys&DeleteUser.
m.bengashier merged commit b9036d8b7a into main 2025-02-09 08:19:35 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: m.bengashier/survey-beta#1