18 lines
427 B
C#
18 lines
427 B
C#
using AutoMapper;
|
|
using InventoryTraker.Web;
|
|
|
|
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(AutoMapperConfig), "Configure")]
|
|
namespace InventoryTraker.Web
|
|
{
|
|
public static class AutoMapperConfig
|
|
{
|
|
public static MapperConfiguration Config { get; private set; }
|
|
|
|
public static void Configure()
|
|
{
|
|
Config = new MapperConfiguration(cfg =>
|
|
cfg.AddProfiles(typeof(Controllers.UserController))
|
|
);
|
|
}
|
|
}
|
|
} |