/// <summary>
        /// Default constructor for the <see cref="UnitTypeGroupsController"/> class taking OData helper and repository facade arguments.
        /// </summary>
        /// <param name="oDataHelper">Helper that provides OData utilities to manage requests.</param>
        /// <param name="facade">Facade for the repository used to persist Unit Type Group data.</param>
        public UnitTypeGroupsController(IODataHelper oDataHelper, IFacadeWithCruModels <UnitTypeGroupBaseDto, UnitTypeGroupBaseDto, UnitTypeGroupQueryDto, Guid> facade)
            : base(oDataHelper)
        {
            if (facade == null)
            {
                throw new ArgumentNullException(nameof(facade));
            }

            Facade = facade;
        }
        /// <summary>
        /// Default constructor for the <see cref="LocationLogEntriesController"/> class taking OData helper and repository facade arguments.
        /// </summary>
        /// <param name="oDataHelper">Helper that provides OData utilities to manage requests.</param>
        /// <param name="facade">Facade for the repository used to persist Location Type data.</param>
        public LocationLogEntriesController(IODataHelper oDataHelper, IFacadeWithCruModels <LocationLogEntryBaseDto, LocationLogEntryBaseDto, LocationLogEntryQueryDto, Guid> facade)
            : base(oDataHelper)
        {
            if (facade == null)
            {
                throw new ArgumentNullException(nameof(facade));
            }

            Facade = facade;
        }
Пример #3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="oDataHelper">Helper that provides OData utilities to manage requests.</param>
        /// <param name="facade">Facade for the repository used to persist data.</param>
        public DashboardsController(IODataHelper oDataHelper,
                                    IFacadeWithCruModels <DashboardBaseDto, DashboardBaseDto, DashboardQueryDto, Guid> facade)
            : base(oDataHelper)
        {
            if (facade == null)
            {
                throw new ArgumentNullException(nameof(facade));
            }

            Facade = facade;
        }
Пример #4
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="oDataHelper">Helper that provides OData utilities to manage requests.</param>
        /// <param name="facade">Facade for the repository used to persist data.</param>
        public ChemicalFormTypesController(IODataHelper oDataHelper,
                                           IFacadeWithCruModels <ChemicalFormTypeBaseDto, ChemicalFormTypeBaseDto, ChemicalFormTypeQueryDto, Guid> facade)
            : base(oDataHelper)
        {
            if (facade == null)
            {
                throw new ArgumentNullException(nameof(facade));
            }

            Facade = facade;
        }