예제 #1
0
        private ToDoItemService(int userId)
        {
            _projectUserRepository = new EfRepository <ProjectsUsers>();
            _repository            = new EfRepository <ToDoItem>();
            _userId = userId;

            _tagService = TagService.GetInstance();
        }
예제 #2
0
 private ProjectService(int userId)
 {
     _userRepository        = new EfRepository <User>();
     _projectRepository     = new EfRepository <Project>();
     _projectUserRepository = new EfRepository <ProjectsUsers>();
     _itemRepository        = new EfRepository <ToDoItem>();
     _userId     = userId;
     _tagService = TagService.GetInstance();
 }