26 lines
514 B
C#
26 lines
514 B
C#
using Diary.Component.Entries.Repository;
|
|
using Diary.Component.Entries.Service;
|
|
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<IEntryService, EntryService>();
|
|
services.AddScoped<IEntryRepository, EntryRepository>();
|
|
|
|
return services;
|
|
|
|
}
|
|
|
|
}
|
|
}
|