#pragma warning disable CS3001 // Argument type is not CLS-compliant public IdBaseApiControllerBase(IDalBase <TDto, TId> dal, IMapper mapper, IContractValidator <TContract> contractValidator) #pragma warning restore CS3001 // Argument type is not CLS-compliant { Dal = dal; Mapper = mapper; ContractValidator = contractValidator; }
public static T Create <T>(IDalBase dalBase = null) where T : IDalBase { T dal = MainCfg.ServiceProvider.GetService <T>(); if (dal == null) { throw new DALImplementationNotFoundException(typeof(T)); } if (dalBase != null) { dal.SetContext(dalBase.GetContext()); } return(dal); }
public DateRangeEffectiveContractObjectsController(IDalBase <DateRangeEffectiveDtoObject, int> dal, IMapper mapper, IContractValidator <DateRangeEffectiveContractObject> contractValidator) : base(dal, mapper, contractValidator) { CreatedRouteName = StaticTestValues.GetDateRangeEffectiveContractObjectRouteName; ControllerName = StaticTestValues.ControllerName; }
public Dal(IDalBase dalBase) : base(dalBase) { }