27 lines
581 B
C#
27 lines
581 B
C#
using Diary.Component.Entries.Repository;
|
|
using Diary.Component.Entries.Service;
|
|
using Diary.Data;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Diary.Installers
|
|
{
|
|
public static class DependencyInstallers
|
|
{
|
|
public static IServiceCollection AddDependencies(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<IUnitOfWork, UnitOfWork>();
|
|
|
|
services.AddScoped<IEntryService, EntryService>();
|
|
services.AddScoped<IEntryRepository, EntryRepository>();
|
|
|
|
return services;
|
|
|
|
}
|
|
|
|
}
|
|
}
|