/// <summary> /// Инициализирует экземпляр <see cref="ConstructionCompanyService"/>. /// </summary> /// <param name="repository">Репозиторий</param> public ConstructionCompanyService(IConstructionCompanyRepository repository) { _repository = repository; }
public UnitOfWork(Homework4Context сontext, IConstructionCompanyRepository constructionCompany, IBuildingRepository building) { this._сontext = сontext; this.Building = building; this.ConstructionCompany = constructionCompany; }