Skip to content

Commit 55a6392

Browse files
committed
Refactor the code
1 parent 35e8f35 commit 55a6392

File tree

122 files changed

+12685
-1336
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+12685
-1336
lines changed

User.Management.API.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "User.Management.API", "User
44
EndProject
55
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "User.Management.Service", "User.Management.Service\User.Management.Service.csproj", "{96890D86-5BB1-4263-BCA8-E47FE2CADA64}"
66
EndProject
7+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "User.Management.Data", "User.Management.Data\User.Management.Data.csproj", "{7EA2101A-5926-489B-A1C6-5E56A9D52838}"
8+
EndProject
79
Global
810
GlobalSection(SolutionConfigurationPlatforms) = preSolution
911
Debug|Any CPU = Debug|Any CPU
@@ -18,5 +20,9 @@ Global
1820
{96890D86-5BB1-4263-BCA8-E47FE2CADA64}.Debug|Any CPU.Build.0 = Debug|Any CPU
1921
{96890D86-5BB1-4263-BCA8-E47FE2CADA64}.Release|Any CPU.ActiveCfg = Release|Any CPU
2022
{96890D86-5BB1-4263-BCA8-E47FE2CADA64}.Release|Any CPU.Build.0 = Release|Any CPU
23+
{7EA2101A-5926-489B-A1C6-5E56A9D52838}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24+
{7EA2101A-5926-489B-A1C6-5E56A9D52838}.Debug|Any CPU.Build.0 = Debug|Any CPU
25+
{7EA2101A-5926-489B-A1C6-5E56A9D52838}.Release|Any CPU.ActiveCfg = Release|Any CPU
26+
{7EA2101A-5926-489B-A1C6-5E56A9D52838}.Release|Any CPU.Build.0 = Release|Any CPU
2127
EndGlobalSection
2228
EndGlobal

User.Management.API/Controllers/AuthenticationController.cs

Lines changed: 178 additions & 220 deletions
Large diffs are not rendered by default.

User.Management.API/Migrations/20240207220237_InitiallMigration.Designer.cs

Lines changed: 0 additions & 279 deletions
This file was deleted.

User.Management.API/Migrations/20240207221730_RolesSeeded.cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

User.Management.API/Models/Response.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
public class Response
44
{
5-
public string? Status { get; set; }
5+
public bool IsSuccess { get; set; }
66
public string? Message { get; set; }
7+
public int Status { get; set; }
78
}

User.Management.API/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Microsoft.EntityFrameworkCore;
55
using Microsoft.IdentityModel.Tokens;
66
using Microsoft.OpenApi.Models;
7-
using User.Management.API.Models;
7+
using User.Management.Data.Models;
88
using User.Management.Service.Models;
99
using User.Management.Service.Services;
1010

@@ -16,7 +16,7 @@
1616
options.UseSqlServer(configuration.GetConnectionString("connectionString")));
1717

1818
//Add Identity
19-
builder.Services.AddIdentity<IdentityUser, IdentityRole>()
19+
builder.Services.AddIdentity<ApplicationUser, IdentityRole>()
2020
.AddEntityFrameworkStores<ApplicationDbContext>()
2121
.AddDefaultTokenProviders();
2222

@@ -49,9 +49,10 @@
4949
//Add Email Configuration
5050

5151
builder.Services.AddScoped<IEmailService, EmailService>();
52-
5352
builder.Services.Configure<EmailConfiguration>(configuration.GetSection("EmailConfiguration"));
5453

54+
//Add User Management
55+
builder.Services.AddScoped<IUserManagement, UserManagement>();
5556

5657
// Add services to the container.
5758
builder.Services.AddControllers();

0 commit comments

Comments
 (0)