public PlanningAppStateService(IDateService dateService, IStateStatusRepository stateStatusRepository) { DateService = dateService; StateStatusRepository = stateStatusRepository; this.statusList = StateStatusRepository.GetStateStatusList().Result; this.CompletionDate = DateService.GetCurrentDate(); }
public async Task <IEnumerable <StateStatusResource> > GetStatuses(string StatusName) { var statuses = await repository.GetStateStatusList(StatusName); return(mapper.Map <List <StateStatus>, List <StateStatusResource> >(statuses)); }