public ProfitService() { profRep = new ProfitRepository(); }
private RepositoryUnits() { connectionString = WebConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString; ProfitRepository = new ProfitRepository(connectionString); CardsRepository = new CardsRepository(connectionString); }