Newer
Older
TaskBasedUI-HTTPAPI / Purchasing / ConfigureServices.cs
@Derek Comartin Derek Comartin on 5 Mar 2021 384 bytes Init
using MediatR;
using Microsoft.Extensions.DependencyInjection;

namespace Purchasing
{
    public static class ConfigureServices
    {
        public static void ConfigurePurchasingServices(this IServiceCollection collection)
        {
            collection.AddDbContext<PurchasingDbContext>();
            collection.AddMediatR(typeof(ConfigureServices).Assembly);
        }
    }
}