public async Task <IEnumerable <ActivityDto> > GetActivities() { var activities = await _Repo.GetActivities(); IEnumerable <ActivityDto> dto = _Mapper.Map <IEnumerable <ActivityDto> >(activities); return(dto); }
/// <summary> /// Called when an attached view's Loaded event fires. /// </summary> /// <param name="view"/> protected override void OnViewLoaded(object view) { base.OnViewLoaded(view); Activities = _activitiesRepository.GetActivities().ToList(); GetNextRecord(); }
public UserActivityTracker( IActivityRecordsRepository activityRecordsRepository, IActivitiesRepository activitiesRepository, IActivityTrackingSettings settings, IUserInputTracker inputTracker) { _activityRecordsRepository = activityRecordsRepository; _settings = settings; _inputTracker = inputTracker; List<Activity> activities = activitiesRepository.GetActivities().ToList(); _defaultActivity = activities[0]; _breakActivity = activities[1]; _homeActivity = activities[5]; }
public UserActivityTracker( IActivityRecordsRepository activityRecordsRepository, IActivitiesRepository activitiesRepository, IActivityTrackingSettings settings, IUserInputTracker inputTracker) { _activityRecordsRepository = activityRecordsRepository; _settings = settings; _inputTracker = inputTracker; List <Activity> activities = activitiesRepository.GetActivities().ToList(); _defaultActivity = activities[0]; _breakActivity = activities[1]; _homeActivity = activities[5]; }
public IEnumerable <ActivitiesAC> GetActivities() { return(_activitiesRepository.GetActivities()); }
public IEnumerable <ActivityTemplate> GetStagesbyID(int projectid) { IEnumerable <ProjectActivityPlan> projectactivityplanlist = new List <ProjectActivityPlan>(); IEnumerable <ActivityTemplate> stages = new List <ActivityTemplate>(); List <ProjectActivityPlanModel> ProjectPlanModelList = new List <ProjectActivityPlanModel>(); projectactivityplanlist = ProjectActivityPlanRepository.GetProjectActivityPlans().Where(c => c.ProjectID == projectid && c.ParentID == "0"); List <string> templist = new List <string>(); foreach (var projectplan in projectactivityplanlist) { templist.Add(projectplan.TemplateID); } stages = ActivitiesRepository.GetActivities().Where(c => templist.Contains(c.TemplateID)); return(stages); }
public IEnumerable <ActivityTemplate> GetActivities() { var activities = ActivitiesRepository.GetActivities(); return(activities); }
public IActionResult Activity() { IEnumerable <Activity> activities = activitiesRepository.GetActivities().Select(mapper.Map <Activity>);; return(View()); }
public Task <List <Activity> > Handle(ActivitiesListQuery request, CancellationToken cancellationToken) { Task <List <Activity> > activities = _repository.GetActivities(); return(activities); }