static DependencyResolver() { _employeesDao = new EmployeesDao(); _employeesLogic = new EmployeesLogic(_employeesDao); _filesDao = new FilesDao(); _filesLogic = new FilesLogic(_filesDao); _newsDao = new NewsDao(); _newsLogic = new NewsLogic(_newsDao); _pagesDao = new PagesDao(); _pagesLogic = new PagesLogic(_pagesDao); _patientsDao = new PatientsDao(); _patientsLogic = new PatientsLogic(_patientsDao); _postsDao = new PostsDao(); _postsLogic = new PostsLogic(_postsDao); _recordsDao = new RecordsDao(); _recordsLogic = new RecordsLogic(_recordsDao); _rolesDao = new RolesDao(); _rolesLogic = new RolesLogic(_rolesDao); _specialtiesDao = new SpecialtiesDao(); _specialtiesLogic = new SpecialtiesLogic(_specialtiesDao); _usersDao = new UsersDao(); _usersLogic = new UsersLogic(_usersDao, _rolesDao); }
public ActionResult Delete(string id) { INewsDao dao = _factory.NewsDao; dao.Delete(dao.Get(id)); return(Json(new { success = true })); }
public ProjectService(IProjectsDao projects, INewsDao news, IUserDao user) { _projects = projects; _news = news; _user = user; }
public NewsService(INewsDao dao) { this.dao = dao; }
private NewsService() { _daoManager = ServiceConfig.GetInstance().DaoManager; _iNewsDao = _daoManager.GetDao(typeof(INewsDao)) as INewsDao; }
public NewsLogic(INewsDao newsDao) { _newsDao = newsDao; }
public HomeService(IMessageDao messageSender, INewsDao news, IProjectsDao projects) { _message = messageSender; _news = news; _projects = projects; }
private NewsTypeService() { _daoManager = ServiceConfig.GetInstance().DaoManager; _iNewsTypeDao = _daoManager.GetDao(typeof(INewsTypeDao)) as INewsTypeDao; _iNewsDao = _daoManager.GetDao(typeof(INewsDao)) as INewsDao; }
public ProjectsService(IProjectsDao projectsDao, IDirectionsDao directionsDao, INewsDao newsDao) { _projectsDao = projectsDao; _directionsDao = directionsDao; _newsDao = newsDao; }