/// <summary> /// Initializes a new instance of the <see cref="BaseService"/> class. /// </summary> /// <param name="domainAutoMapper">Objects maps container</param> /// <param name="dataIoCContainer">Container of IoC for Data Layer</param> public BaseService(IDomainAutoMapper domainAutoMapper, DataIoCContainer dataIoCContainer) { DomainAutoMapper = domainAutoMapper; DatabaseContext = new DatabaseContext(); DataIoCContainer = dataIoCContainer; }
/// <summary> /// Constuctor /// </summary> public FlightService(IDomainAutoMapper domainAutoMapper, DataIoCContainer dataIoCContainer) : base(domainAutoMapper, dataIoCContainer) { InitializeRepositories(); }