public PlanningAppStateService(IDateService dateService,
                                IStateStatusRepository stateStatusRepository)
 {
     DateService           = dateService;
     StateStatusRepository = stateStatusRepository;
     this.statusList       = StateStatusRepository.GetStateStatusList().Result;
     this.CompletionDate   = DateService.GetCurrentDate();
 }
예제 #2
0
        public async Task <IEnumerable <StateStatusResource> > GetStatuses(string StatusName)
        {
            var statuses = await repository.GetStateStatusList(StatusName);

            return(mapper.Map <List <StateStatus>, List <StateStatusResource> >(statuses));
        }