Skip to content

ITempService

Namespace: Rest_API.Services.Temp

public interface ITempService

Methods

GetCoordinates(Int32)

Retrieves the coordinates for the postalcode chosen by the admin if there is no entry in the database already.

Task GetCoordinates(int postalCode)

Parameters

postalCode Int32

The postalcode of the city that was chosen by the admin.

Returns

Task

ShowAvailableLocations()

Retrieves all postalcodes that are saved in the database for the user to chose from.

Task<List<Tuple<Int32, String>>> ShowAvailableLocations()

Returns

A list containing all postalcodes.