Exemple #1
0
 public HouseBusinessLogic(IHouseRepository houseRepository,
                           IHouseMemberRepository houseMemberRepository)
 {
     HouseRepository          = houseRepository;
     HouseMemberRepository    = houseMemberRepository;
     AutoMapperConfigurations = new AutoMapperConfigurations();
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 protected override IMapper ConfigureMaps()
 {
     return(AutoMapperConfigurations.RegisterMaps());
 }
Exemple #4
0
        public static void RegisterAllMappings()
        {
            var mapper = new AutoMapperConfigurations();

            mapper.Execute(Assembly.Load(Constants.DataTransferModelsAssemblyPath));
        }
Exemple #5
0
 public UserCurrentRequestStatusBusinessLogic(IUserCurrentRequestStatusRepository userCurrentRequestStatusRepository)
 {
     UserCurrentRequestStatusRepository = userCurrentRequestStatusRepository;
     AutoMapperConfigurations           = new AutoMapperConfigurations();
 }