Example #1
0
 public PanelController(IUnitOfWork unitOfWork)
 {
     this.unitOfWork       = unitOfWork;
     this.genericOperation = new GenericOperation((UnitOfWork)unitOfWork);
 }
 public ProductOperations(IMainGenericDb <Product> repo, IExistElement existElement, IAgroSearch search, IGenericOperation <Dose, DosesInput> dosesOperation, ICommonDbOperations <Product> commonDb, ICommonQueries queries, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
     this.dosesOperation = dosesOperation;
     this.queries        = queries;
 }
Example #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="repo">repositorio de base de datos de productos</param>
 /// <param name="search">operaciones en base de datos de busqueda basadas en entitySearch</param>
 /// <param name="dosesOperation">Operaciones de dosis</param>
 /// <param name="commonDb">convierte IQueryable en listas</param>
 /// <param name="queries">consultas a agro</param>
 /// <param name="validator">Validador de elementos</param>
 public ProductOperations(IMainGenericDb <Product> repo, IAgroSearch <T> search, IGenericOperation <Dose, DosesInput> dosesOperation, ICommonDbOperations <Product> commonDb, ICommonAgroQueries queries, IValidatorAttributes <ProductInput> validator) : base(repo, search, commonDb, validator)
 {
     this.dosesOperation = dosesOperation;
     this.queries        = queries;
 }