Ejemplo n.º 1
0
        public virtual EventsHistoryLogInfo GetEventHistoryLog(int periodId, EventHistoryLogInputInfo inputInfo)
        {
            var listInput  = _listInputInfoToListInputMapper.Map(inputInfo.ListInputInfo);
            var eventsInfo = _completedEventRepository
                             .Get(
                GetCriteriaForEventHistoryLog(periodId, inputInfo.EventHistoryLogFilterInputInfo),
                null,
                listInput,
                e => e.Name)
                             .Select(completedEvent => _completedEventToEventHistoryLogInfoMapper.Map(completedEvent))
                             .ToArray();

            return(new EventsHistoryLogInfo
            {
                EventsInfo = eventsInfo,
                TotalNumberOfEvents = _completedEventRepository.Count(GetCriteriaForEventHistoryLog(periodId, inputInfo.EventHistoryLogFilterInputInfo))
            });
        }
Ejemplo n.º 2
0
 public virtual EventsHistoryLogInfo GetEventHistoryLog(RoleData role, int periodId, EventHistoryLogInputInfo inputInfo)
 {
     return(_patientApplicationService.GetEventHistoryLog(periodId, inputInfo));
 }