예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LogsController"/> class.
 /// </summary>
 /// <param name="unitOfWork">
 /// The unit of work.
 /// </param>
 public LogsController(IUnitOfWork unitOfWork)
 {
     this.logRepository = unitOfWork.GetStanderdRepository<Log>();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// </summary>
 /// <param name="unitOfWork">
 /// The unit of work.
 /// </param>
 public AccountController(IUnitOfWork unitOfWork)
 {
     this.userRepository = unitOfWork.GetStanderdRepository<User>();
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductService"/> class.
 /// </summary>
 /// <param name="unitOfWork">
 /// The unit of work.
 /// </param>
 public ProductService(IUnitOfWork unitOfWork)
 {
     this.unitOfWork = unitOfWork;
     this.productRepository = unitOfWork.GetStanderdRepository<Product>();
 }