Esempio n. 1
0
        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 }));
        }
Esempio n. 3
0
 public ProjectService(IProjectsDao projects, INewsDao news, IUserDao user)
 {
     _projects = projects;
     _news = news;
     _user = user;
 }
Esempio n. 4
0
 public NewsService(INewsDao dao)
 {
     this.dao = dao;
 }
Esempio n. 5
0
 private NewsService()
 {
     _daoManager = ServiceConfig.GetInstance().DaoManager;
     _iNewsDao = _daoManager.GetDao(typeof(INewsDao)) as INewsDao;
 }
Esempio n. 6
0
 public NewsLogic(INewsDao newsDao)
 {
     _newsDao = newsDao;
 }
Esempio n. 7
0
 public HomeService(IMessageDao messageSender, INewsDao news, IProjectsDao projects)
 {
     _message = messageSender;
     _news = news;
     _projects = projects;
 }
Esempio n. 8
0
 private NewsTypeService()
 {
     _daoManager   = ServiceConfig.GetInstance().DaoManager;
     _iNewsTypeDao = _daoManager.GetDao(typeof(INewsTypeDao)) as INewsTypeDao;
     _iNewsDao     = _daoManager.GetDao(typeof(INewsDao)) as INewsDao;
 }
Esempio n. 9
0
 public ProjectsService(IProjectsDao projectsDao, IDirectionsDao directionsDao, INewsDao newsDao)
 {
     _projectsDao = projectsDao;
     _directionsDao = directionsDao;
     _newsDao = newsDao;
 }