Method | Description | |
---|---|---|
AddNewRoute ( |
Adds a new Route to the database.
|
|
GetRoutesFromUserId ( int userId ) : List |
Retrieves the collection of routes submitted by a given user.
|
Method | Description | |
---|---|---|
MetersToMiles ( double meters ) : double |
Converts a distance in meters to a distance in miles.
|
|
ProcessRoute ( |
Processes the contents of a route and updates the corresponding user statistics.
|
public static AddNewRoute ( |
||
route | Route to add to the database. | |
errorMessage | string | |
return | int |
public static GetRoutesFromUserId ( int userId ) : List |
||
userId | int | Identifier of the user. |
return | List |