Пример #1
0
 public Task(ITaskRepository taskRepository, TaskModelFactory taskModelFactory, TaskSkillModelFactory taskSkillModelFactory, SkillModelFactory skillModelFactory, ICommonService commonService, IEmailTrackerService emailTrackerService)
 {
     _taskRepository        = taskRepository;
     _taskModelFactory      = taskModelFactory;
     _taskSkillModelFactory = taskSkillModelFactory;
     _skillModelFactory     = skillModelFactory;
     _commonService         = commonService;
     _emailTrackerService   = emailTrackerService;
 }
Пример #2
0
        public IActionResult Get(int page = 0, int size = 25)
        {
            IEnumerable <Task> data = new TaskModelFactory().LoadAll(this.Storage, page, size)?.Tasks;
            int count = data.Count();

            return(Ok(new
            {
                success = true,
                data,
                count,
                totalPage = ((int)count / size) + 1
            }));
        }
Пример #3
0
 public RequestorService(ITaskRepository taskRepository, TaskModelFactory taskModelFactory, IRequestorRepository requestorRepository, ApplicantModelFactory applicantModelFactory, ApprovedContributorModelFactory approvedContributorModelFactory, ICommonService commonService, TaskApplicantModelFactory taskApplicantModelFactory, ApprovedApplicantModelFactory approvedApplicantModelFactory, IUserRepository userRepository, SkillModelFactory skillModelFactory, IEmailTrackerService emailTrackerService)
 {
     _taskRepository                  = taskRepository;
     _taskModelFactory                = taskModelFactory;
     _requestorRepository             = requestorRepository;
     _applicantModelFactory           = applicantModelFactory;
     _approvedContributorModelFactory = approvedContributorModelFactory;
     _commonService                 = commonService;
     _taskApplicantModelFactory     = taskApplicantModelFactory;
     _approvedApplicantModelFactory = approvedApplicantModelFactory;
     _userRepository                = userRepository;
     _skillModelFactory             = skillModelFactory;
     _emailTrackerService           = emailTrackerService;
 }
Пример #4
0
        public ReportingService(ITaskRepository taskRepository,
                                IUserRepository userRepository,
                                IDailyUsageStatisticsRepository dailyUsageStatisticsRepository,
                                IDataManagement dbQueryManager,
                                ICommonService commonService,
                                TaskModelFactory taskModelFactory)
        {
            _taskRepository = taskRepository;

            _userRepository = userRepository;

            _dailyUsageStatisticsRepository = dailyUsageStatisticsRepository;

            _dbQueryManager = dbQueryManager;

            _commonService = commonService;

            _taskModelFactory = taskModelFactory;
        }