コード例 #1
0
 public Logic()
 {
     unitOfWork = new ProductsUnitOfWork(new ProductsContext());
     Mapper.Initialize(cfg =>
     {
         cfg.CreateMap <Product, ProductModel>();
         cfg.CreateMap <ProductModel, Product>();
     });
 }
コード例 #2
0
 public ProductsController(IDbContext context)
 {
     _unitOfWork = new ProductsUnitOfWork(context);
 }