shopping-assistant-api/ShoppingAssistantApi.Application/ApplicationExtensions/MapperExtension.cs
2023-09-22 23:02:20 +03:00

16 lines
434 B
C#

using Microsoft.Extensions.DependencyInjection;
using ShoppingAssistantApi.Application.MappingProfiles;
using System.Reflection;
namespace ShoppingAssistantApi.Application.ApplicationExtentions;
public static class MapperExtension
{
public static IServiceCollection AddMapper(this IServiceCollection services)
{
services.AddAutoMapper(Assembly.GetAssembly(typeof(UserProfile)));
return services;
}
}