This commit is contained in:
mmrbnjd
2024-04-05 01:05:32 +03:30
parent 0b1ad82130
commit 4eb04aef14
9 changed files with 234 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
using Back.Data.Contracts;
using Back.Data.Infrastructure.Repository;
using Back.Services;
using Back.Validations;
using Microsoft.EntityFrameworkCore;
using TaxPayer.Infrastructure.Persistence;
@@ -18,6 +19,8 @@ builder.Services.AddDbContext<SqlDbContext>(options =>
});
builder.Services.AddScoped(typeof(IAsyncRepository<>), typeof(RepositoryBase<>));
builder.Services.AddScoped<Back.Services.ServBase>();
builder.Services.AddScoped<MobileValidation> ();
builder.Services.AddScoped<Service.Main>();
string origins = "OriginTaxPayer";
builder.Services.AddCors(options =>
{