Пример #1
0
 void Application_Start(object sender, EventArgs e)
 {
     // Code that runs on application startup
     GlobalConfiguration.Configure(WebApiConfig.Register);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     XmlConfigurator.Configure();
     ObjectMapper.ConfigureAutoMapper();
 }
Пример #2
0
 public void Initialize()
 {
     _cartService = new CartsService();
     _prodService = new ProductsService();
     ObjectMapper.ConfigureAutoMapper();
 }
 public void Initialize()
 {
     _service = new ProductsService();
     ObjectMapper.ConfigureAutoMapper();
 }