/// <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>(); }
/// <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>(); }
/// <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>(); }