private ToDoItemService(int userId) { _projectUserRepository = new EfRepository <ProjectsUsers>(); _repository = new EfRepository <ToDoItem>(); _userId = userId; _tagService = TagService.GetInstance(); }
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(); }