public HouseBusinessLogic(IHouseRepository houseRepository, IHouseMemberRepository houseMemberRepository) { HouseRepository = houseRepository; HouseMemberRepository = houseMemberRepository; AutoMapperConfigurations = new AutoMapperConfigurations(); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); AutoMapperConfigurations.RegisterMappings(); UnityConfig.RegisterComponents(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }
/// <summary> /// /// </summary> /// <returns></returns> protected override IMapper ConfigureMaps() { return(AutoMapperConfigurations.RegisterMaps()); }
public static void RegisterAllMappings() { var mapper = new AutoMapperConfigurations(); mapper.Execute(Assembly.Load(Constants.DataTransferModelsAssemblyPath)); }
public UserCurrentRequestStatusBusinessLogic(IUserCurrentRequestStatusRepository userCurrentRequestStatusRepository) { UserCurrentRequestStatusRepository = userCurrentRequestStatusRepository; AutoMapperConfigurations = new AutoMapperConfigurations(); }