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; }
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 })); }
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; }
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; }