Shady nagy/remove newton soft (#436)
* replace NewtonSoft with System.Text.Json * not use auth for brande and types and use GetFromJsonAsync * fix * fix * Auth HttpGet more simple. * Put, Delete and Post more simple. * Fixed Edit for remove image and keep image and change other fields. Added description required in Blazor Admin. * Removed using not used * Refactor AuthService and introduce HttpService. add validation for price. * return null in HttpService if not success. * Limt Price to 1000 mximum * DI for Blazor Services * one blazor service. * fix
This commit is contained in:
22
src/BlazorAdmin/ServicesConfiguration.cs
Normal file
22
src/BlazorAdmin/ServicesConfiguration.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using BlazorAdmin.Services.CatalogItemServices;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace BlazorAdmin
|
||||
{
|
||||
public static class ServicesConfiguration
|
||||
{
|
||||
public static IServiceCollection AddBlazorServices(this IServiceCollection service)
|
||||
{
|
||||
service.AddScoped<Create>();
|
||||
service.AddScoped<ListPaged>();
|
||||
service.AddScoped<Delete>();
|
||||
service.AddScoped<Edit>();
|
||||
service.AddScoped<GetById>();
|
||||
|
||||
service.AddScoped<BlazorAdmin.Services.CatalogBrandServices.List>();
|
||||
service.AddScoped<BlazorAdmin.Services.CatalogTypeServices.List>();
|
||||
|
||||
return service;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user