protected override Task <ICommandResult> Handle(SaveExOzStateCommand command) { _exOzStateRepository.DisableAllExOzStates(); UpdateStates(command); SaveExOzStateCommandResult updatedStates = new SaveExOzStateCommandResult(); updatedStates.StateList = _exOzStateRepository.GetAll().ToList(); return(Task.FromResult <ICommandResult>(updatedStates)); }
public IEnumerable <ExOzState> GetAll() { return(_exOzStateRepository.GetAll()); }