public List <State> GetStates(long?countryId) { GetStatesCommand getStatesCommand = new GetStatesCommand(countryId); getStatesCommand.Execute(); return(getStatesCommand.CommandResult); }
public Dictionary <string, string> GetStates(int countryId) { GetStatesCommand getStatesCommand = new GetStatesCommand(new long?((long)countryId)); getStatesCommand.Execute(); return(getStatesCommand.CommandResult); }
public List <UserManagementSystem.Entities.State> GetAllStates(int countryId) { GetStatesCommand getStatesCommand = new GetStatesCommand(countryId); getStatesCommand.Execute(); return(getStatesCommand.CommandResult); }
public async Task <StatesResult> GetStatesAsync(CancellationToken cancellationToken = default) { var getStatesCommand = new GetStatesCommand(); var getStatesCommandResult = await ConnectionService.SendCommandAsync <GetStatesCommand, GetStatesCommandResult>(getStatesCommand, cancellationToken); getStatesCommandResult.EnsureSuccessResult(); return(new StatesResult(getStatesCommandResult.Result)); }